emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[QZ#3] MSD Radix Sort Lamba Expression #56

Closed lcunild closed 4 years ago

lcunild commented 4 years ago

Is there a way to implement the method by calling the sort() auxiliary method from BucketSort, which includes a lambda expression to define the key? I have been trying to implement it this way, however I can't update div correctly. Is this because the lambda expression must be final? Should we be defining a new BucketSort auxiliary method without the lambda expression?

jdchoi77 commented 4 years ago

You do not need to call the auxiliary sort() method from BucketSort for MSDRadixSort if that's easier to implement.