Grammarly vs Twitter Interview Questions
Grammarly lists 30 LeetCode interview questions while Twitter lists 53. They share 5 problems — 17% of Grammarly's bank and 9% of Twitter's. Focus on the overlap first, then drill into 25 Grammarly-only and 48 Twitter-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 Twitter.
Step 2 — Company-specific depth: Add Grammarly-specific problems like Remove All Adjacent Duplicates In String, Search in Rotated Sorted Array, Vowel Spellchecker and Twitter-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: Twitter 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 Twitter.
| 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 Twitter.
| 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 Twitter (48)
Problems in Twitter's list that do not appear at Grammarly.
| Problem | Difficulty |
|---|---|
| Regular Expression Matching | Hard |
| Integer to Roman | Medium |
| Valid Parentheses | Easy |
| Merge k Sorted Lists | Hard |
| Multiply Strings | Medium |
| Wildcard Matching | Hard |
| Permutation Sequence | Hard |
| Pascal's Triangle | Easy |
| LRU Cache | Medium |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| One Edit Distance | Medium |
Frequently Asked Questions
How many LeetCode questions do Grammarly and Twitter share?
Grammarly and Twitter share 5 LeetCode interview questions. 25 problems appear only in Grammarly's list and 48 appear only in Twitter's list.
What topics overlap most between Grammarly and Twitter?
The most common shared topics between Grammarly and Twitter 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 Twitter?
Grammarly has 7 Easy, 19 Medium, and 4 Hard questions. Twitter has 8 Easy, 33 Medium, and 12 Hard questions. Twitter has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Grammarly and Twitter?
Start with the 5 shared problems since they cover what both companies ask most often. Then add 20 Grammarly-specific and 20 Twitter-specific questions to round out your prep.