Grammarly vs X Interview Questions
Grammarly lists 30 LeetCode interview questions while X lists 51. They share 5 problems — 17% of Grammarly's bank and 10% of X's. Focus on the overlap first, then drill into 25 Grammarly-only and 46 X-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 5 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Grammarly and X.
Step 2 — Company-specific depth: Add Grammarly-specific problems like Remove All Adjacent Duplicates In String, Search in Rotated Sorted Array, Vowel Spellchecker and X-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: X skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
5 Shared Questions
High-priority problems to practice for both Grammarly and X.
| Problem | Difficulty |
|---|---|
| Merge Intervals | Medium |
| Insert Delete GetRandom O(1) | Medium |
| Implement Trie (Prefix Tree) | Medium |
| Word Break II | Hard |
| Trapping Rain Water | Hard |
Unique to Grammarly (25)
Problems in Grammarly's list that do not appear at X.
| Problem | Difficulty |
|---|---|
| Remove All Adjacent Duplicates In String | Easy |
| Search in Rotated Sorted Array | Medium |
| Vowel Spellchecker | Medium |
| Remove All Adjacent Duplicates in String II | Medium |
| Climbing Stairs | Easy |
| Repeated DNA Sequences | Medium |
| Sqrt(x) | Easy |
| Generate Parentheses | Medium |
| Perfect Number | Easy |
| Logger Rate Limiter | Easy |
| Sum of Left Leaves | Easy |
| Non-overlapping Intervals | Medium |
Unique to X (46)
Problems in X's list that do not appear at Grammarly.
| Problem | Difficulty |
|---|---|
| Tweet Counts Per Frequency | Medium |
| LRU Cache | Medium |
| Flatten Nested List Iterator | Medium |
| Design Twitter | Medium |
| Binary Gap | Easy |
| Regular Expression Matching | Hard |
| Integer to Roman | Medium |
| Alien Dictionary | Hard |
| Time Needed to Buy Tickets | Easy |
| Valid Parentheses | Easy |
| Max Points on a Line | Hard |
| Merge k Sorted Lists | Hard |
Frequently Asked Questions
How many LeetCode questions do Grammarly and X share?
Grammarly and X share 5 LeetCode interview questions. 25 problems appear only in Grammarly's list and 46 appear only in X's list.
What topics overlap most between Grammarly and X?
The most common shared topics between Grammarly and X are Array (4 shared questions), Hash Table (3 shared questions), Design (2 shared questions), String (2 shared questions), Trie (2 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Grammarly or X?
Grammarly has 7 Easy, 19 Medium, and 4 Hard questions. X has 8 Easy, 31 Medium, and 12 Hard questions. X has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Grammarly and X?
Start with the 5 shared problems since they cover what both companies ask most often. Then add 20 Grammarly-specific and 20 X-specific questions to round out your prep.