Data structure basics interview questions
How each structure works, what it costs and when to pick it.
7 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 7 done, 0 saved
How does an array differ from a linked list?
Reported 70 times
Read the solutionLinked listsExample sources
3 of the write-ups counted: geeksforgeeks.org 2023, geeksforgeeks.org 2022, geeksforgeeks.org 2018
How does a stack differ from a queue?
Reported 53 times
Read the solutionStacks, queues and heapsExample sources
3 of the write-ups counted: geeksforgeeks.org 2024, geeksforgeeks.org 2024, geeksforgeeks.org 2023
What is a linked list, and how is it structured?
Reported 32 times
Read the solutionLinked listsExample sources
3 of the write-ups counted: geeksforgeeks.org 2024, geeksforgeeks.org 2019, geeksforgeeks.org 2020
Describe the common sorting techniques and how they compare.
Reported 20 times
Read the solutionSorting and searchingExample sources
3 of the write-ups counted: geeksforgeeks.org 2020, geeksforgeeks.org 2026, geeksforgeeks.org 2022
Compare merge sort with quick sort.
Reported 18 times
Read the solutionSorting and searchingExample sources
3 of the write-ups counted: geeksforgeeks.org 2025, geeksforgeeks.org 2015, geeksforgeeks.org 2023
What is a stack, and which operations does it support?
Reported 18 times
Read the solutionStacks, queues and heapsExample sources
3 of the write-ups counted: geeksforgeeks.org 2021, geeksforgeeks.org 2020, geeksforgeeks.org 2022
What is a hash function and what makes a good one?
Reported 15 times
Read the solutionHashing and hash mapsExample sources
3 of the write-ups counted: geeksforgeeks.org 2016, geeksforgeeks.org 2021, geeksforgeeks.org 2020