Top 50 Algorithms Interview Questions
The most frequently asked Algorithms questions across all roles and companies, ranked by real interview frequency. Updated daily.
Use a two-pointer string scan to determine whether a string reads the same forward and backward.
Dsv Air & Sea
Lucid Motors
AfterqueryReverse a singly linked list iteratively and recursively while preserving every node and returning the new head.
Netsuite
Macquarie GroupAAppLogic NetworksReverse a singly linked list in place by rewiring next pointers in one pass.
General AtomicsKKotak
Kotak Mahindra BankSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Reverse the order of words in a report string while preserving each word and normalizing whitespace.
LeidosHHelmerich & Payne
TencentReverse each word's characters while preserving the sentence's word order using a linear scan.
American Airlines
Pocket FmBBestPeers InfosystemFind two array values that sum to a target using a hash map in O(n) time.
Booz Allen Hamilton
Vanguard
AscendionUse Dijkstra’s algorithm with a priority queue to find the shortest path in a weighted graph with non-negative edges.
SuccessKPI
TikTok Shop
YelpMerge overlapping intervals by sorting on start time, then scanning once to combine intersecting ranges.
Datadog
Wurl
Fuku