Data Structures Interview Questions
Data Structures Interview Questions
What is an array?
Can an array be resized at runtime?
What is the time complexity for accessing an element in an array?
What is the difference between an array and a linked list?
How would you find the smallest and largest element in an array?
Explain the concept of a multi-dimensional array.
What is the difference between an array and a linked list?
How would you find the smallest and largest element in an array?
Explain the concept of a multi-dimensional array
What is an array index out of bounds exception?
How would you reverse an array in-place in linear time and constant space?
Explain the concept of a jagged array.
How can you find duplicate elements in an array?
Discuss the advantages and disadvantages of using arrays.
Explain the concept of a sparse array.
What is the difference between an array and a list?
PROBLEMS
Find a peak element which is not smaller than its neighbours.
Find the minimum and maximum element in an array.
Write a program to reverse the given array .
Write a program to sort the given array with least time and space complexity.
Find the kth largest and kth smallest number in an array
Find the occurrence of an integer in the array
Sort the array of 0s,1s,and 2s
Subarray with given sum
Move all the negative elements to one side of the array
Find the union and intersection of the two sorted arrays
Find the missing integer
Count pairs with the given sum
Find duplicates in an array
Sort an array using quicksort algorithm
Find a triplet that sums to a given value
Print the given matrix in a spiral manner
Array implementation of stack
Solve chocolate distribution problem
Coin change problem
LINKEDLIST
WHAT IS A LINKED LIST
PROBLEMS
DESIGN A HASHMAP
DESIGN SKIPLIST
PROBLEMS
FIND MAXIMUM PEOPLE A PERSON CAN SEE WHILE STANDING IN A LINE IN BOTH DIRECTIONS
CLUMSY FACTORIAL
FIFO
PROBLEMS
GEEK IN A MAZE
NETWORK ROUTING
WHAT IS A HEAP
DIJKSTRA’S ALGORITHM
PROBLEMS
HUFFMAN ENCODING
HASH
WHAT IS CHANINING
CUCKOO HASHING
LOAD FACTOR
PROBLEMS
3-PARTITION PROBLEM
ISOMORPHIC STRINGS
TREE
TYPES OF TREES
TREE TRAVERSAL
HOW TREE USE TO REPRESENT GAME STATES AND POSSIBLE ACTIONS, EXPLAIN USING A SIMPLE
GAME?
PROBLEMS
Rotate an array by 1
Rotate an array by k
Kadanes Algorithm