Skip to content

Commit

Permalink
Create readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlanasieber authored May 28, 2024
1 parent de7e455 commit ec6c012
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Custom Comparator

Write a custom comparator that sorts all even numbers before all odd ones in ascending order. Pass it to an Arrays.sort() function and print the result.


Examples
Input Output
1 2 3 4 5 6

Output
2 4 6 1 3 5

0 comments on commit ec6c012

Please sign in to comment.