Top 50 Algorithms Interview Questions
The most frequently asked Algorithms questions across all roles and companies, ranked by real interview frequency. Updated weekly.
Use a hash map of character counts to determine whether two strings are anagrams in linear time.
Amazon
Meta IT
WalmartExplain Big O notation and how to analyze the time and space complexity of recursive algorithms.
Stackadapt
Prudential Ins Co Of America InProblem 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 ...
Lucid Motors
PlangridMaintain a dynamic weighted graph and recompute shortest path after each edge update using Dijkstra and a min-heap.
Palantir technologiesUse Dijkstra’s algorithm with a priority queue to find the shortest path in a weighted graph with non-negative edges.
SwiggyImplement an in-memory key-value store with TTL using a hash map and min-heap for efficient expiration.
RampSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Open any question for its full solution and discussion.
Browse all questions →