Geico Interview Questions — 20 DSA Problems
17 problems with full solutions in Python, Java, C++, JavaScript, Go, Rust.
Most frequently asked Geico LeetCode questions for software engineering interviews.
- Maximum Number of Potholes That Can Be Fixed (MEDIUM) — String, Greedy, Sorting
- Largest Palindromic Number (MEDIUM) — Hash Table, String, Greedy, Counting
- Number of Steps to Reduce a Number in Binary Representation to One (MEDIUM) — String, Bit Manipulation, Simulation
- Integer to Roman (MEDIUM) — Hash Table, Math, String
- Valid Sudoku (MEDIUM) — Array, Hash Table, Matrix
- Coin Change (MEDIUM) — Array, Dynamic Programming, Breadth-First Search
- Best Time to Buy and Sell Stock with Cooldown (MEDIUM) — Array, Dynamic Programming
- First Missing Positive (HARD) — Array, Hash Table
- Number of Spaces Cleaning Robot Cleaned (MEDIUM) — Array, Matrix, Simulation
- Path with Maximum Gold (MEDIUM) — Array, Backtracking, Matrix
- Longest Happy String (MEDIUM) — String, Greedy, Heap (Priority Queue)
- Boundary of Binary Tree (MEDIUM) — Tree, Depth-First Search, Binary Tree
- Minimum Number of Food Buckets to Feed the Hamsters (MEDIUM) — String, Dynamic Programming, Greedy
- Count of Smaller Numbers After Self (HARD) — Array, Binary Search, Divide and Conquer, Binary Indexed Tree, Segment Tree, Merge Sort, Ordered Set
- Decode String (MEDIUM) — String, Stack, Recursion
- Roman to Integer (EASY) — Hash Table, Math, String
- Minimum Moves to Spread Stones Over Grid (MEDIUM) — Array, Dynamic Programming, Breadth-First Search, Matrix
- Best Time to Buy and Sell Stock II (MEDIUM) — Array, Dynamic Programming, Greedy
- Cinema Seat Allocation (MEDIUM) — Array, Hash Table, Greedy, Bit Manipulation
- Remove All Adjacent Duplicates In String (EASY) — String, Stack
G
Geico
20 questions tracked17 with solutions
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough
Showing 20 of 20 questions
1MediumMaximum Number of Potholes That Can Be Fixed
StringGreedySorting
2Hash TableStringGreedyCounting
3MediumNumber of Steps to Reduce a Number in Binary Representation to One✓ Our Solution StringBit ManipulationSimulation
6ArrayDynamic ProgrammingBreadth-First Search
9MediumNumber of Spaces Cleaning Robot Cleaned
ArrayMatrixSimulation
11StringGreedyHeap (Priority Queue)
12MediumBoundary of Binary Tree
TreeDepth-First SearchBinary Tree
13MediumMinimum Number of Food Buckets to Feed the Hamsters✓ Our Solution StringDynamic ProgrammingGreedy
14ArrayBinary SearchDivide and ConquerBinary Indexed Tree+3
17ArrayDynamic ProgrammingBreadth-First SearchMatrix
18ArrayDynamic ProgrammingGreedy
19ArrayHash TableGreedyBit Manipulation