You are viewing a single comment's thread from:

RE: Added List Location Activity and Sort Data by Distance with Bubble Sort Algorithm

in #utopian-io5 years ago

Thank you for your contribution.

You don't need to manually implement sorting algorithms these days in most cases, you can use the Arrays.sort or Collections.sort with a custom comparator. e.g. https://www.google.com/search?q=java+custom+sort+comparator+collections&oq=java+custom+sort+comparator+collections&aqs=chrome..69i57j0.6234j0j7&sourceid=chrome&ie=UTF-8

Bubble sorting is inefficient (only for teaching, not for practical use), if you really want to go down implementing your sorting algorithm, choose "selection sort" in simple sorting, and "quick-sort" or "merge-sort" if you want some more complex ones.

No unit tests.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Sort:  

Thank you for your review, @justyy! Keep up the good work!