Tag: selection_sort
Insertion sort v.s. Selection sort
Date: 1/25/2024Tags:algorithmsselection_sortinsertion_sortThe journal entry compares the time complexity of selection sort and insertion sort, highlighting that selection sort takes N^2/2 time while insertion sort takes N^2/4 time, and explains the difference in their comparison processes.
Relative sort array #2 attempt
Date: 1/25/2024Tags:algorithmsleetcodeselection_sortIn this journal entry, the author discusses their second attempt at solving the Relative Sort Array problem on LeetCode, mentioning lessons learned and providing a code implementation using selection sort.
Relative Sort Array
Date: 1/24/2024Tags:algorithmsleetcodeselection_sortThe journal entry provides a solution for the "Relative Sort Array" problem and includes a code that implements the solution using selection sort.