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

Grammarly

30 questions

Easy 7Medium 19Hard 4
X

51 questions

Easy 8Medium 31Hard 12

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

Easy
Grammarly
7
X
8
Medium
Grammarly
19
X
31
Hard
Grammarly
4
X
12

Top Shared Topics

5 Shared Questions

High-priority problems to practice for both Grammarly and X.

ProblemDifficulty
Merge IntervalsMedium
Insert Delete GetRandom O(1)Medium
Implement Trie (Prefix Tree)Medium
Word Break IIHard
Trapping Rain WaterHard

Unique to Grammarly (25)

Problems in Grammarly's list that do not appear at X.

ProblemDifficulty
Remove All Adjacent Duplicates In StringEasy
Search in Rotated Sorted ArrayMedium
Vowel SpellcheckerMedium
Remove All Adjacent Duplicates in String IIMedium
Climbing StairsEasy
Repeated DNA SequencesMedium
Sqrt(x)Easy
Generate ParenthesesMedium
Perfect NumberEasy
Logger Rate LimiterEasy
Sum of Left LeavesEasy
Non-overlapping IntervalsMedium

Unique to X (46)

Problems in X's list that do not appear at Grammarly.

ProblemDifficulty
Tweet Counts Per FrequencyMedium
LRU CacheMedium
Flatten Nested List IteratorMedium
Design TwitterMedium
Binary GapEasy
Regular Expression MatchingHard
Integer to RomanMedium
Alien DictionaryHard
Time Needed to Buy TicketsEasy
Valid ParenthesesEasy
Max Points on a LineHard
Merge k Sorted ListsHard

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.

Explore More