Time and Space Complexity
15 problems to practice.
Bubble Sort
1.You are given an array of N Integrs. 2.You have to complete the function bubble() that should so...
Insertion Sort
1. Implement insertion sort.
Merge Two Sorted Arrays
1. Given two sorted arrays in non-decreasing order. 2. The task is to merge the two sorted arrays...
Selection Sort
1.You are given an array of size 'N'. 2.You have to complete the function selectionSort() that sho...
Merge Sort
1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...
Partition An Array
1. You are given an array(arr) of integers and a pivot. 2. You have to re-arrange the given array i...
Quick Sort
1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...
Quick Select
1. You are given an array(arr) of integers. 2. You have to find the k-th smallest element in the gi...
Count Sort
1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...
Radix Sort
1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...
Sort Dates
1. You are given an array(arr) of different dates in format DD-MM-YYYY. 2. You have to sort these d...
Sort 01
1. You are given an array(arr) containing only 0's and 1's. 2. You have to sort the given array in...
Sort 012
1. You are given an array(arr) containing only 0's, 1's, and 2's. 2. You have to sort the given arr...
Target Sum Pair 1
1. You are given an array(arr) of distinct integers and a target. 2. You have to print all the pair...
Pivot In Sorted And Rotated Array
1. You are given an array(arr) of distinct integers, which is sorted and rotated around an unknown p...