Articles in this series
Reverse a String Given a String S , print the reverse of the string as output. class Solution { public: string revStr(string S) { ...
Find minimum and maximum element in an array Given an array A of size N of integers. Your task is to find the minimum and maximum elements in the...
450DSA Cracker Solution ยท Given an array which consists of only 0, 1 and 2. Sort the array without using any sorting algo Sort an array of 0s, 1s and...
Kth smallest element Given an array arr[] and an integer K where K is smaller than size of array, the task is to find the Kth smallest element in the...
Move all negative elements to end Given an unsorted array arr[] of size n having both negative and positive integers. The task is place all negative...
Cyclically rotate an array by one Given an array, rotate the array by one position in clock-wise direction. Example 1: Input: N = 5 A[] = {1, 2, 3,...