Logo
CareerCompass

Interview Preparation

Common interview questions organized by role and topic. Practice before your big day.

22 questions across 3 topics

1

Explain time complexity of common sorting algorithms (QuickSort, MergeSort, HeapSort)

2

Implement a binary search tree with insert, delete, and search operations

3

How would you detect a cycle in a linked list? (Floyd's algorithm)

4

Explain the difference between BFS and DFS. When would you use each?

5

Solve: Given an array, find two numbers that sum to a target (Two Sum)

6

What is dynamic programming? Solve the coin change problem

7

Explain hash maps — how do they handle collisions?

8

Implement a stack using two queues

9

What is a trie? When would you use it over a hash map?

10

Explain graph algorithms: Dijkstra's, Kruskal's, Prim's