Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Algorithms
2k+ articles
Sorting
1.7k+ articles
Binary Search
510+ articles
array-rearrange
460+ articles
DSA Quiz
320+ articles
Arrays
260+ articles
Algorithms-Sorting-Quiz
27 articles
Sorting Quiz
71 posts
Popular Articles
Recent Articles
Schedule elevator to reduce the total time taken
Last Updated: 01 June 2022
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 ca
...read more
Sorting Quiz
Algorithms
Arrays
DSA
Array Manipulation and Sum
Last Updated: 16 September 2022
Given an array arr[] of N integers and an integer S. The task is to find an element K in the array such that if all the elements from the ar
...read more
Arrays
Sorting Quiz
Algorithms
DSA
C program to store Student records as Structures and Sort them by Name
Last Updated: 17 January 2019
Given student's records with each record containing id, name and age of a student. Write a C program to read these records and display them
...read more
Sorting Quiz
C Language
C-Struct-Union-Enum
C Programs
Similar Topics
DSA
22.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Algorithms
2k+ articles
Sorting
1.7k+ articles
Binary Search
510+ articles
array-rearrange
460+ articles
DSA Quiz
320+ articles
Arrays
260+ articles
Algorithms-Sorting-Quiz
27+ articles
Sort the array in a given index range
Last Updated: 13 September 2022
Given an array arr[] of N integers and an index range [a, b]. The task is to sort the array in this given index range i.e., sort the element
...read more
Arrays
Sorting Quiz
Sorting
Technical Scripter
Arrays
Java Programs
DSA
Maximise the number of toys that can be purchased with amount K
Last Updated: 27 March 2024
Given an array consisting of the cost of toys. Given an integer K depicting the amount of money available to purchase toys. Write a program
...read more
Arrays
Sorting Quiz
Sorting
DSA
Rearrange array such that arr[i] >= arr[j] if i is even and arr[i]<=arr[j] if i is odd and j < i
Last Updated: 14 November 2022
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 than al
...read more
Arrays
Misc
Sorting Quiz
array-rearrange
DSA
Can QuickSort be implemented in O(nLogn) worst case time complexity?
Last Updated: 06 December 2023
The worst-case time complexity of a typical implementation of QuickSort is O(n2). The worst case occurs when the picked pivot is always an e
...read more
Sorting Quiz
Sorting
Quick Sort
DSA
Binary Insertion Sort
Last Updated: 31 January 2023
Binary insertion sort is a sorting algorithm which is similar to the insertion sort, but instead of using linear search to find the location
...read more
Sorting Quiz
Binary Search
Sorting
Algorithms-InsertionSort
DSA
Comparator Function of qsort() in C
Last Updated: 10 January 2025
In C, qsort() is used for sorting an array in desired order. But to provide compatibility to different data types, it additionally requires
...read more
Sorting Quiz
Sorting
Quick Sort
CPP-Library
C Language
C++
C-Library
DSA
Algorithms | Sorting | Question 11
Last Updated: 28 June 2021
You have to sort 1 GB of data with only 100 MB of available main memory. Which sorting technique will be most appropriate?(A) Heap sort(B) M
...read more
Sorting Quiz
DSA Quiz
Algorithms-Sorting-Quiz
Algorithms | Sorting | Question 9
Last Updated: 22 December 2021
Suppose we are sorting an array of eight integers using heapsort, and we have just finished some heapify (either maxheapify or m
...read more
Sorting Quiz
DSA Quiz
Algorithms-Sorting-Quiz
Algorithms | Sorting | Question 23
Last Updated: 19 November 2018
Suppose we are sorting an array of eight integers using quicksort, and we have just finished the first partitioning with the array looking l
...read more
Sorting Quiz
DSA Quiz
Algorithms-Sorting-Quiz
Algorithms | Sorting | Question 5
Last Updated: 20 October 2021
Given an unsorted array. The array has this property that every element in the array is at most k distance from its position in
...read more
Sorting Quiz
DSA Quiz
Algorithms-Sorting-Quiz
Algorithms | Sorting | Question 2
Last Updated: 28 June 2021
Suppose we have an O(n) time algorithm that finds the median of an unsorted array. Now consider a QuickSort implementation where
...read more
Sorting Quiz
DSA Quiz
Algorithms-Sorting-Quiz
Algorithms | Sorting | Question 1
Last Updated: 28 June 2021
What is recurrence for worst case of QuickSort and what is the time complexity in Worst case?(A) Recurrence is T(n) = T(n-2) + O(n) and time
...read more
Sorting Quiz
DSA Quiz
Algorithms-Sorting-Quiz
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !