You are incrementing i just as fast as you increment j. j cannot catch up to i.
Also, you did not post the entire method, and the tabs made your code unreadable. Please only use 1 or 2 spaces instead of tabs to make it more readable.
You are incrementing i just as fast as you increment j. j cannot catch up to i.
Also, you did not post the entire method, and the tabs made your code unreadable. Please only use 1 or 2 spaces instead of tabs to make it more readable.
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
thk for all done ald!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum