Tag: quick_sort
QuickSort - 3rd attempt
Date: 2/6/2024Tags:algorithmsleetcodequick_sortThe journal entry discusses the understanding of the quicksort algorithm, specifically the importance of moving the pointers before comparing them, setting the base case in recursive functions, and provides a code example implementing quicksort algorithm in typescript.
QuickSort :: 2nd attempt
Date: 1/31/2024Tags:algorithmsleetcodequick_sortThe journal entry describes the author's second attempt at using QuickSort to solve the "Sort an Array" problem on LeetCode, detailing the process of partitioning and explaining why a specific if statement is necessary to prevent the pointers from crossing each other; it also includes a code for the function sortArray that utilizes shuffleArray and sort functions.
Quick sort
Date: 1/30/2024Tags:algorithmsleetcodequick_sortThe journal entry titled "Quick sort" explains and implements the QuickSort algorithm to solve the "Sort an Array problem" from LeetCode, utilizing the partition function and a code snippet.