Data-Structures-and-Algorithms-in-Java-2nd-Edition-by-Robert-Lafore
Data-Structures-and-Algorithms-in-Java-2nd-Edition-by-Robert-Lafore copied to clipboard
Bugger in 3.6
It is better to write the if statement as "if(a[in - 1] == temp && a[in - 1] != -1) " otherwise, it could cause an incorrect result for nCopies.
could you raise a PR for this