Time and Space Complexity

15 problems to practice.

15 Total
15 Easy
0 Medium
0 Hard

Bubble Sort

1.You are given an array of N Integrs. 2.You have to complete the function bubble() that should so...

easy

Insertion Sort

1. Implement insertion sort.

easy

Merge Two Sorted Arrays

1. Given two sorted arrays in non-decreasing order. 2. The task is to merge the two sorted arrays...

easy

Selection Sort

1.You are given an array of size 'N'. 2.You have to complete the function selectionSort() that sho...

easy

Merge Sort

1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...

easy

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...

easy

Quick Sort

1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...

easy

Quick Select

1. You are given an array(arr) of integers. 2. You have to find the k-th smallest element in the gi...

easy

Count Sort

1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...

easy

Radix Sort

1. You are given an array(arr) of integers. 2. You have to sort the given array in increasing order...

easy

Sort Dates

1. You are given an array(arr) of different dates in format DD-MM-YYYY. 2. You have to sort these d...

easy

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...

easy

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...

easy

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...

easy

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...

easy