Sorting and intervals interview questions
Sorting algorithms, custom order, merging and scheduling intervals.
6 questions solved with this pattern, most asked first. Reported by candidates in public interview write-ups and reworded by Scrivio. How the reports are counted
Your progress: 0 of 6 done, 0 saved
Reported 46 times
Read the solutionGreedy algorithmsExample sources
3 of the write-ups counted: geeksforgeeks.org 2019, geeksforgeeks.org 2018, geeksforgeeks.org 2024
Write a bubble sort and state its time complexity.
Reported 30 times
Read the solutionSorting and searchingExample sources
3 of the write-ups counted: geeksforgeeks.org 2018, geeksforgeeks.org 2021, geeksforgeeks.org 2024
Merge all overlapping intervals in a list of intervals.
Reported 23 times
Read the solutionSorting and searchingExample sources
3 of the write-ups counted: geeksforgeeks.org 2017, geeksforgeeks.org 2014, geeksforgeeks.org 2024
Write an implementation of quick sort.
Reported 18 times
Read the solutionSorting and searchingExample sources
3 of the write-ups counted: geeksforgeeks.org 2019, geeksforgeeks.org 2018, geeksforgeeks.org 2019
Explain merge sort and write a complete working implementation.
Reported 15 times
Read the solutionSorting and searchingExample sources
3 of the write-ups counted: geeksforgeeks.org 2016, geeksforgeeks.org 2020, geeksforgeeks.org 2024
Count the inversions in an array of integers.
Reported 15 times
Read the solutionSorting and searchingExample sources
3 of the write-ups counted: geeksforgeeks.org 2020, geeksforgeeks.org 2019, geeksforgeeks.org 2019