How often are these problems asked?
Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Geico interviews.
Very Likely
75-100%
Likely
50-74%
Sometimes
25-49%
Rare
0-24%
Problem database last updated: June 20, 2025
17 problems · 2 Easy, 13 Medium, 2 Hard · Ranked #103 of 458
2 Easy
12% · avg 23%
13 Medium
76% · avg 59%
2 Hard
12% · avg 18%
Based on 17 reported problems, Geico interviews are in line with industry averages - 12% Hard vs 18% overall. The majority (76%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.
Compared to the industry average, Geico puts unusual emphasis on bit-manipulation (17.6% of problems, 5.2x the industry average), greedy (29.4% of problems, 3.5x the industry average), backtracking (11.8% of problems, 2.3x the industry average). If you're short on time, these are the categories to double down on.
The most common topics are array (52.9%), string (47.1%), hash-table (35.3%), greedy (29.4%). Problems below are sorted by frequency, the ones at the top are asked most often.
| Problem | Difficulty | Frequency | Topics | |
|---|---|---|---|---|
Largest Palindromic Number You are given a string num consisting of digits only. | Medium | Very Likely | hash-tablestringgreedy | Solve |
Number of Steps to Reduce a Number in Binary Representation to One Given the binary representation of an integer as a string s, return the number of steps to reduce it to 1 under the following rules: | Medium | Very Likely | stringbit-manipulationsimulation | Solve |
Integer to Roman Seven different symbols represent Roman numerals with the following values: | Medium | Very Likely | hash-tablemathstring | Solve |
Valid Sudoku Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: | Medium | Very Likely | arrayhash-tablematrix | Solve |
Coin Change You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. | Medium | Very Likely | arraydynamic-programmingbreadth-first-search | Solve |
Best Time to Buy and Sell Stock with Cooldown You are given an array prices where prices[i] is the price of a given stock on the ith day. | Medium | Very Likely | arraydynamic-programming | Solve |
First Missing Positive Given an unsorted integer array nums. Return the smallest positive integer that is not present in nums. | Hard | Very Likely | arrayhash-table | Solve |
Minimum Number of Food Buckets to Feed the Hamsters You are given a 0-indexed string hamsters where hamsters[i] is either: | Medium | Likely | stringdynamic-programminggreedy | Solve |
Longest Happy String A string s is called happy if it satisfies the following conditions: | Medium | Likely | stringgreedyheap-priority-queue | Solve |
Path with Maximum Gold In a gold mine grid of size m x n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty. | Medium | Likely | arraybacktrackingmatrix | Solve |
Remove All Adjacent Duplicates In String You are given a string s consisting of lowercase English letters. A duplicate removal consists of choosing two adjacent and equal letters and removing them. | Easy | Likely | stringstack | Solve |
Decode String Given an encoded string, return its decoded string. | Medium | Likely | stringstackrecursion | Solve |
Best Time to Buy and Sell Stock II You are given an integer array prices where prices[i] is the price of a given stock on the ith day. | Medium | Likely | arraydynamic-programminggreedy | Solve |
Count of Smaller Numbers After Self Given an integer array nums, return an integer array counts where counts[i] is the number of smaller elements to the right of nums[i]. | Hard | Likely | arraybinary-searchdivide-and-conquer | Solve |
Minimum Moves to Spread Stones Over Grid You are given a 0-indexed 2D integer matrix grid of size 3 3, representing the number of stones in each cell. The grid contains exactly 9 stones, and there can... | Medium | Likely | arraydynamic-programmingbacktracking | Solve |
Cinema Seat Allocation A cinema has n rows of seats, numbered from 1 to n and there are ten seats in each row, labelled from 1 to 10 as shown in the figure above. | Medium | Likely | arrayhash-tablegreedy | Solve |
Roman to Integer Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. | Easy | Likely | hash-tablemathstring | Solve |
Largest Palindromic Number
SolveYou are given a string num consisting of digits only.
Number of Steps to Reduce a Number in Binary Representation to One
SolveGiven the binary representation of an integer as a string s, return the number of steps to reduce it to 1 under the following rules:
Integer to Roman
SolveSeven different symbols represent Roman numerals with the following values:
Valid Sudoku
SolveDetermine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:
Coin Change
SolveYou are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.
Best Time to Buy and Sell Stock with Cooldown
SolveYou are given an array prices where prices[i] is the price of a given stock on the ith day.
First Missing Positive
SolveGiven an unsorted integer array nums. Return the smallest positive integer that is not present in nums.
Minimum Number of Food Buckets to Feed the Hamsters
SolveYou are given a 0-indexed string hamsters where hamsters[i] is either:
Longest Happy String
SolveA string s is called happy if it satisfies the following conditions:
Path with Maximum Gold
SolveIn a gold mine grid of size m x n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty.
Remove All Adjacent Duplicates In String
SolveYou are given a string s consisting of lowercase English letters. A duplicate removal consists of choosing two adjacent and equal letters and removing them.
Decode String
SolveGiven an encoded string, return its decoded string.
Best Time to Buy and Sell Stock II
SolveYou are given an integer array prices where prices[i] is the price of a given stock on the ith day.
Count of Smaller Numbers After Self
SolveGiven an integer array nums, return an integer array counts where counts[i] is the number of smaller elements to the right of nums[i].
Minimum Moves to Spread Stones Over Grid
SolveYou are given a 0-indexed 2D integer matrix grid of size 3 3, representing the number of stones in each cell. The grid contains exactly 9 stones, and there can...
Cinema Seat Allocation
SolveA cinema has n rows of seats, numbered from 1 to n and there are ten seats in each row, labelled from 1 to 10 as shown in the figure above.
Roman to Integer
SolveRoman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Geico interviews.
Very Likely
75-100%
Likely
50-74%
Sometimes
25-49%
Rare
0-24%
Geico interviews focus heavily on array, string, hash-table problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.
Beyond solving problems, practice explaining your approach. Geico interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.
Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.
Geico has been reported to ask 17 distinct coding problems. The most common topics are array, string, hash-table. 2 are Easy difficulty, 13 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.
Based on 17 reported problems, Geico interviews are in line with industry averages - 12% Hard vs 18% overall. 76% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.
Start with the highest-frequency problems listed on this page. Focus on the core topics: array, string, hash-table. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.
Simulate a real Geico coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.
Simulate a Geico interview with AIarrow_forward