Data-Structures-and-Algorithms-in-Java-2nd-Edition-by-Robert-Lafore icon indicating copy to clipboard operation
Data-Structures-and-Algorithms-in-Java-2nd-Edition-by-Robert-Lafore copied to clipboard

Bugger in 3.6

Open HuGuo-UNC-Chapel-Hill opened this issue 3 years ago • 1 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.

HuGuo-UNC-Chapel-Hill avatar May 27 '22 13:05 HuGuo-UNC-Chapel-Hill

could you raise a PR for this

srsandy avatar Jan 23 '25 13:01 srsandy