grindmapcompany-wise LeetCode
All companies

Grammarly LeetCode Questions

30 questions all-time · 7 easy · 19 medium · 4 hard
# Problem Difficulty Frequency Acceptance
1Merge Intervals
Array, Sorting
Medium
100
0.5%
2Remove All Adjacent Duplicates In String
String, Stack
Easy
91
0.7%
3Search in Rotated Sorted Array
Array, Binary Search
Medium
90
0.5%
4Vowel Spellchecker
Array, Hash Table, String
Medium
89
0.6%
5Insert Delete GetRandom O(1)
Array, Hash Table, Math, Design, Randomized
Medium
89
0.6%
6Remove All Adjacent Duplicates in String II
String, Stack
Medium
87
0.6%
7Climbing Stairs
Math, Dynamic Programming, Memoization
Easy
84
0.5%
8Repeated DNA Sequences
Hash Table, String, Bit Manipulation, Sliding Window, Rolling Hash, Hash Function
Medium
80
0.5%
9Sqrt(x)
Math, Binary Search
Easy
78
0.4%
10Generate Parentheses
String, Dynamic Programming, Backtracking
Medium
75
0.8%
11Perfect Number
Math
Easy
73
0.5%
12Logger Rate Limiter
Hash Table, Design, Data Stream
Easy
73
0.8%
13Sum of Left Leaves
Tree, Depth-First Search, Breadth-First Search, Binary Tree
Easy
73
0.6%
14Search Insert Position
Array, Binary Search
Easy
66
0.5%
15Non-overlapping Intervals
Array, Dynamic Programming, Greedy, Sorting
Medium
66
0.6%
16Evaluate Reverse Polish Notation
Array, Math, Stack
Medium
61
0.6%
17Two Best Non-Overlapping Events
Array, Binary Search, Dynamic Programming, Sorting, Heap (Priority Queue)
Medium
61
0.6%
18Word Break II
Array, Hash Table, String, Dynamic Programming, Backtracking, Trie, Memoization
Hard
55
0.6%
19Word Search
Array, String, Backtracking, Depth-First Search, Matrix
Medium
55
0.5%
20Implement Trie (Prefix Tree)
Hash Table, String, Design, Trie
Medium
55
0.7%
21Check If a String Contains All Binary Codes of Size K
Hash Table, String, Bit Manipulation, Rolling Hash, Hash Function
Medium
55
0.6%
22Minimum Substring Partition of Equal Character Frequency
Hash Table, String, Dynamic Programming, Counting
Medium
55
0.4%
23Word Break
Array, Hash Table, String, Dynamic Programming, Trie, Memoization
Medium
46
0.5%
24Number of Islands
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Medium
46
0.6%
25Special Binary String
String, Divide and Conquer, Sorting
Hard
46
0.8%
26Decode the Slanted Ciphertext
String, Simulation
Medium
46
0.7%
27Maximum Palindromes After Operations
Array, Hash Table, String, Greedy, Sorting, Counting
Medium
46
0.5%
28Trapping Rain Water
Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack
Hard
46
0.7%
29Unique Paths
Math, Dynamic Programming, Combinatorics
Medium
46
0.7%
30Recover a Tree From Preorder Traversal
String, Tree, Depth-First Search, Binary Tree
Hard
46
0.8%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.