srsandy/Data-Structures-and-Algorithms-in-Java-2nd-Edition-by-Robert-Lafore

Bugger in 3.6

HuGuo-UNC-Chapel-Hill opened this issue · 0 comments

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.