Skip to content

Tag Archives: Sorting Quiz

Given an array of n elements. Our task is to write a program to rearrange the array such that elements at even positions are greater… Read More
Given an array of n elements. Our task is to write a program to rearrange the array such that elements at even positions are greater… Read More
Given an array of n elements. Our task is to write a program to rearrange the array such that elements at even positions are greater… Read More
Given an array of n elements. Our task is to write a program to rearrange the array such that elements at even positions are greater… Read More
Given an array of n elements. Our task is to write a program to rearrange the array such that elements at even positions are greater… Read More
Gnome Sort also called Stupid sort, is based on the concept of a Garden Gnome sorting his flower pots. In order to know more about… Read More
Given a matrix mat[][] of size M*N, the task is to sort only the border elements of the matrix in the clockwise direction and print… Read More
Given two strings (of lowercase letters), a pattern and a string. The task is to sort string according to the order defined by pattern and… Read More
Given an array arr[] of size N consisting of distinct integers from range [0, N – 1] arranged in a random order. Also given a… Read More
Using STL library it is very easy to perform certain basic operations on array like Sorting, searching, sum of elements, finding minimum and maximum element… Read More
Given an array arr[] of n positive integers. The task is to find elements arr[i] and arr[j] from the array such that arr[i]Carr[j] is maximum… Read More
Every state is represented by string of length 2. For example DL is used for Delhi, HP for Himachal Pradesh, UP for Uttar Pradesh, PB… Read More
Given a Complete Binary Tree as an array, the task is to print all of its levels in sorted order.Examples:   Input: arr[] = {7, 6,… Read More
Given a connected graph with N vertices and M edges. The task is to print the lexicographically smallest DFS traversal of the graph starting from… Read More
Given an integer k and an array arr[] representing the destination floors for N people waiting currently at the ground floor and k is the… Read More

Start Your Coding Journey Now!