Compass Interview Questions — 6 DSA Problems
6 problems with full solutions in Python, Java, C++, JavaScript, Go, Rust.
Most frequently asked Compass LeetCode questions for software engineering interviews.
- Total Distance Traveled (EASY) — Math, Simulation
- Camelcase Matching (MEDIUM) — Array, Two Pointers, String, Trie, String Matching
- Group Anagrams (MEDIUM) — Array, Hash Table, String, Sorting
- Subtree of Another Tree (EASY) — Tree, Depth-First Search, String Matching, Binary Tree, Hash Function
- Time Based Key-Value Store (MEDIUM) — Hash Table, String, Binary Search, Design
- Decode String (MEDIUM) — String, Stack, Recursion
C
Compass
6 questions tracked6 with solutions
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough
Showing 6 of 6 questions
2ArrayTwo PointersStringTrie+1
3ArrayHash TableStringSorting
4TreeDepth-First SearchString MatchingBinary Tree+1
5Hash TableStringBinary SearchDesign