0 day streak

Tripadvisor coding interview questions

Product Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Top K Frequent WordsTop K / Kth Largest / Smallest Medium Heaps Google, Amazon, Bloomberg +17 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Ransom NoteHashing Easy Arrays & Hashing Spotify, Anduril, SAP +2 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +35 Solve
Valid NumberSimulation Hard Arrays & Hashing Nutanix, eBay, Epic Games +1 Solve
Random Pick with WeightBasics Medium Binary Search Google, Amazon, Meta +18 Solve
Set Matrix ZeroesIn-place Transformations Medium Arrays & Hashing Microsoft, Meta, eBay +13 Solve
Min StackStack Medium Design Data Structures Microsoft, Apple, Snowflake +33 Solve
Search a 2D Matrix II (Young Tableau)2D Binary Search + Step Search Medium Binary Search Microsoft, Baidu, Goldman Sachs +13 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Also reported, being added to AlgoRung (3)

Find Common Characters · Number of Connected Components in an Undirected Graph · Intersection of Three Sorted Arrays

Questions people ask

What coding questions does Tripadvisor ask most?

Valid Parentheses, Top K Frequent Words, LRU Cache, Ransom Note, Valid Palindrome, Validate Binary Search Tree, Valid Number, Random Pick with Weight.

Which topics come up in Tripadvisor coding rounds?

strings, hash maps, stack, graphs, trees, heaps.

How hard are Tripadvisor coding questions?

Of the reported questions, 5 are easy, 7 medium and 1 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.