Interview Intel · Grammarly

Grammarly coding interview
questions, leaked.

27 problems reported across recent Grammarly interviews. Top patterns: string, array, hash table. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Grammarly's assessment is deceptively simple until it isn't. You're looking at 27 problems spread across string, array, and hash-table patterns, with 16 medium-difficulty questions sitting in the middle. The medium problems are the real filter: Merge Intervals, Generate Parentheses, Number of Islands, Word Search. They test whether you can combine basic structures into working solutions under pressure. Most candidates drill the easy problems, nail them, then hit a wall on the medium tier. That's where StealthCoder becomes your safety net. If you blank mid-assessment on a backtracking or DP pattern, it surfaces a working solution in seconds, invisible to the proctor.

Tracked problems
27
Easy
8/ 30%
Medium
16/ 59%
Hard
3/ 11%

Top problems at Grammarly

leaked_problems.csv27 rows
#ProblemDiffFrequency
01Merge IntervalsMEDIUM
100.0
02Remove All Adjacent Duplicates In StringEASY
93.2
03Remove All Adjacent Duplicates in String IIMEDIUM
88.0
04Insert Delete GetRandom O(1)MEDIUM
84.8
05Generate ParenthesesMEDIUM
81.1
06Repeated DNA SequencesMEDIUM
78.9
07Vowel SpellcheckerMEDIUM
78.9
08Search in Rotated Sorted ArrayMEDIUM
78.9
09Perfect NumberEASY
76.5
10Sqrt(x)EASY
70.5
11Climbing StairsEASY
70.5
12Number of IslandsMEDIUM
66.8
13Word SearchMEDIUM
66.8
14Backspace String CompareEASY
62.2
15Word Break IIHARD
62.2
16Word BreakMEDIUM
56.3
17Logger Rate LimiterEASY
56.3
18Implement Trie (Prefix Tree)MEDIUM
56.3
19Unique PathsMEDIUM
48.0
20Trapping Rain WaterHARD
48.0
21Sum of Left LeavesEASY
48.0
22Set MismatchEASY
48.0
23Special Binary StringHARD
48.0
24Decode the Slanted CiphertextMEDIUM
48.0
25Evaluate Reverse Polish NotationMEDIUM
48.0
26Maximum Palindromes After OperationsMEDIUM
48.0
27Clone GraphMEDIUM
48.0

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Grammarly OA. The proctor cannot see it. Screen share cannot detect it. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know.

Get StealthCoder
Topic distribution
What this means

Strings and arrays dominate Grammarly's question pool, appearing in 13 and 12 problems respectively. Hash-table problems (10) often overlap with string work, especially in Repeated DNA Sequences and Vowel Spellchecker. The stack pattern shows up heavily in duplicate-removal problems (both Easy and Medium variants). Dynamic programming and math appear less frequently but are scattered throughout, so you can't ignore them. The hard problems (Word Break II and others) combine multiple patterns at once. Start with string manipulation and array work first, then anchor hash-table solutions. Backtracking and DFS problems are lower frequency but show up in critical positions (Generate Parentheses, Word Search). StealthCoder is the hedge for whatever pattern you didn't drill enough. If a DP formulation doesn't snap into place, you've got a live answer in the exam.

Companies with similar patterns

If you prepped for Grammarly, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Grammarly.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Grammarly interview FAQ

Should I study string and array problems first for Grammarly?+

Yes. Strings appear in 13 of 27 problems, arrays in 12. Between them, they cover nearly two-thirds of what you'll see. String manipulation (Remove All Adjacent Duplicates variants) and array problems (Merge Intervals, Number of Islands) are your highest-ROI drills. Hash-table work overlaps both heavily, so don't isolate it.

How many medium problems should I solve before the assessment?+

Grammarly's 16 medium problems are your real test. Solve at least 8 to 10 cold under timed conditions. Focus on Merge Intervals, Generate Parentheses, Number of Islands, and Word Search first. These patterns repeat. The easy problems are warm-ups, not the actual bar.

Is dynamic programming critical for this assessment?+

It appears in 6 problems but often combines with other patterns. Generate Parentheses and Word Break II are the hard ones. Climbing Stairs is easy. Skip DP drilling if you're tight on time, but know memoization basics. If you hit a DP problem live and freeze, StealthCoder generates a working approach instantly.

What's the trick with the duplicate-removal problems?+

Both variants (Easy and Medium) use a stack, but the Medium version (Remove All Adjacent Duplicates in String II) requires counting. Master the Easy version first, then move to the harder neighbor problem. These two alone account for foundational stack knowledge Grammarly tests.

Should I practice backtracking separately for Grammarly?+

Backtracking appears in 3 problems (Generate Parentheses, Word Search, Word Break II). Generate Parentheses is the easiest entry point and is Medium-difficulty. If you're short on time, focus on one solid backtracking pattern and move on. You won't see five backtracking problems in the same assessment.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Grammarly. StealthCoder is not affiliated with Grammarly.