Top 50
Topic
~10h total · Updated weekly · Last refresh Jul 24

Top 50 Algorithms Interview Questions

The most frequently asked Algorithms questions across all roles and companies, ranked by real interview frequency. Updated weekly.

Check Whether Two Strings Are Anagrams
Easy

Use a hash map of character counts to determine whether two strings are anagrams in linear time.

Hash TablesStringsSorting
Recently asked
AmazonMeta ITWalmart
Analyzing Recursive Time Complexity
Medium

Explain Big O notation and how to analyze the time and space complexity of recursive algorithms.

Recursiontime complexityAlgorithms
Recently asked
StackadaptPrudential Ins Co Of America In
Reverse Nodes in K Groups
Medium

Problem Given the head of a singly linked list and an integer k, reverse the nodes of the list k at a time and return the modified head. If the number of ...

Linked ListsAlgorithmsedge cases
Recently asked
Lucid MotorsPlangrid
Dynamic Shortest Paths with Updates
Hard

Maintain a dynamic weighted graph and recompute shortest path after each edge update using Dijkstra and a min-heap.

shortest pathAlgorithmsGraphs
Recently asked
Palantir technologies
Shortest Path in Weighted Graph
Hard

Use Dijkstra’s algorithm with a priority queue to find the shortest path in a weighted graph with non-negative edges.

shortest pathAlgorithmsGraphs
Recently asked
Swiggy
In-Memory Store with TTL
Easy

Implement an in-memory key-value store with TTL using a hash map and min-heap for efficient expiration.

Hash TablesData StructuresAlgorithms
Recently asked
Ramp
More Coding questions with a free account
More Behavioral & Leadership questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan

Open any question for its full solution and discussion.

Browse all questions →