Compass Coding Interview Questions
We track 8 coding questions asked at Compass, tagged with the algorithms and concepts they test. The most common: String, Array, Depth-First Search, Hash Table, Sorting.
Browse all 8 Compass questions →Concept mix
Each question's weight is split evenly across its concepts, so the shares sum to 100%.
- String16.8%
- Array8.5%
- Hash Table7.1%
- Math7.1%
- Simulation7.1%
- String Matching5.7%
- Sorting5.6%
- Depth-First Search4.9%
- Recursion4.8%
- Stack4.8%
- Other (10)27.7%
How many questions involve each concept
Share of all 8 tracked Compass questions that touch each concept. Questions usually involve several, so these overlap.
- String62.5%
- Array37.5%
- Depth-First Search25.0%
- Hash Table25.0%
- Sorting25.0%
- String Matching25.0%
- Binary Search12.5%
- Binary Tree12.5%
- Design12.5%
- Eulerian Circuit12.5%
- Graph Theory12.5%
- Hash Function12.5%
Where Compass differs from the average company
Concept weight at Compass relative to the average across all companies we track. Green means Compass leans on it harder than most.
- String Matching19.0×
- Depth-First Search2.1×
- String1.8×
- Sorting1.4×
- Array0.44×
Compass specialties
Concepts that show up at Compass but are rarely asked elsewhere. They are easy to get blindsided by.
Difficulty mix
Level split of the 8 tracked Compass questions.
- Junior25% (2)
- Mid/Senior63% (5)
- Staff13% (1)
Every concept in Compass interviews
| Concept | Questions | % of questions | Share of mix |
|---|---|---|---|
| String | 5 | 62.5% | 16.8% |
| Array | 3 | 37.5% | 8.5% |
| Depth-First Search | 2 | 25.0% | 4.9% |
| Hash Table | 2 | 25.0% | 7.1% |
| Sorting | 2 | 25.0% | 5.6% |
| String Matching | 2 | 25.0% | 5.7% |
| Binary Search | 1 | 12.5% | 3.6% |
| Binary Tree | 1 | 12.5% | 2.9% |
| Design | 1 | 12.5% | 3.6% |
| Eulerian Circuit | 1 | 12.5% | 2.0% |
| Graph Theory | 1 | 12.5% | 2.0% |
| Hash Function | 1 | 12.5% | 2.9% |
| Heap (Priority Queue) | 1 | 12.5% | 2.0% |
| Math | 1 | 12.5% | 7.1% |
| Recursion | 1 | 12.5% | 4.8% |
| Simulation | 1 | 12.5% | 7.1% |
| Stack | 1 | 12.5% | 4.8% |
| Tree | 1 | 12.5% | 2.9% |
| Trie | 1 | 12.5% | 2.9% |
| Two Pointers | 1 | 12.5% | 2.9% |
Practice a Compass interview
Take a realistic AI-led mock interview with questions Compass actually asks, with live voice and real feedback.
Start a mock interviewYour first interview is free · no credit card required