Bubble Sort

Medium
14 views 22 Dec 2025
Sort an array using Bubble Sort and explain how adjacent elements are repeatedly swapped to move the largest element to the end....

Selection Sort

Medium
14 views 22 Dec 2025
Sort an array using Selection Sort by repeatedly selecting the minimum element and placing it at the correct position....

Insertion Sort

Medium
15 views 22 Dec 2025
Sort an array using Insertion Sort and explain how elements are inserted into their correct position....

Merge Sort

Medium
15 views 22 Dec 2025
Sort an array using Merge Sort by dividing the array into halves and merging sorted subarrays....

Quick Sort

Medium
13 views 22 Dec 2025
Sort an array using Quick Sort and explain pivot selection and partitioning....

Heap Sort

Medium
14 views 22 Dec 2025
Sort an array using Heap Sort and explain heap construction and extraction....

Counting Sort

Medium
13 views 22 Dec 2025
Sort elements using Counting Sort when the range of input values is known....

Radix Sort

Medium
13 views 22 Dec 2025
Sort numbers using Radix Sort by processing digits from least to most significant....

Bucket Sort

Medium
13 views 22 Dec 2025
Sort elements by distributing them into buckets and sorting each bucket individually....

Shell Sort

Medium
11 views 22 Dec 2025
Sort an array using Shell Sort and explain gap reduction....

Tim Sort

Medium
11 views 22 Dec 2025
Explain Tim Sort algorithm used in Python and Java and why it is efficient in practice....

Stable vs Unstable Sorting

Medium
15 views 22 Dec 2025
Differentiate between stable and unstable sorting algorithms with examples....

In-Place Sorting

Medium
11 views 22 Dec 2025
Explain in-place sorting algorithms and their advantages....

Sort Nearly Sorted Array

Medium
12 views 22 Dec 2025
Sort an array where each element is at most k positions away from its sorted position....

Sort Array of 0s 1s and 2s

Medium
17 views 22 Dec 2025
Sort an array containing only 0s, 1s, and 2s using the Dutch National Flag algorithm....

Merge Two Sorted Arrays

Medium
15 views 22 Dec 2025
Merge two already sorted arrays into a single sorted array efficiently....

Count Inversions

Medium
15 views 22 Dec 2025
Count the number of inversions in an array using a modified merge sort....

Minimum Swaps to Sort Array

Medium
13 views 22 Dec 2025
Find the minimum number of swaps required to sort an array....

Kth Smallest Element

Medium
15 views 22 Dec 2025
Find the kth smallest element in an unsorted array using sorting or selection techniques....

Sort Strings Lexicographically

Medium
13 views 22 Dec 2025
Sort an array of strings in lexicographical order using suitable sorting approach....