Skip to content

Commit cfd56cf

Browse files
authored
contents(algo): add Java implementation details for platform sorting algorithms (#585)
1 parent a56d9c5 commit cfd56cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/website/contents/algorithms/sorting-searching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ While you're unlikely to be asked to implement a sorting algorithm from scratch
7171

7272
## Things to look out for during interviews
7373

74-
Make sure you know the time and space complexity of the language's default sorting algorithm! The time complexity is almost definitely O(nlog(n))). Bonus points if you can name the sort. In Python, it's [Timsort](https://en.wikipedia.org/wiki/Timsort).
74+
Make sure you know the time and space complexity of the language's default sorting algorithm! The time complexity is almost definitely O(nlog(n))). Bonus points if you can name the sort. In Python, it's [Timsort](https://en.wikipedia.org/wiki/Timsort). In Java, [an implementation of Timsort](https://github.com/openjdk/jdk/blob/d9052b946682d1c0f2629455d73fe4e6b95b29db/src/java.base/share/classes/java/util/TimSort.java) is used for sorting objects, and [Dual-Pivot Quicksort](https://github.com/openjdk/jdk/blob/d9052b946682d1c0f2629455d73fe4e6b95b29db/src/java.base/share/classes/java/util/DualPivotQuicksort.java) is used for sorting primitives.
7575

7676
## Corner cases
7777

0 commit comments

Comments
 (0)