Skip to content

Interview Solver

FeaturesPricingHelp
Sign In
FeaturesPricingHelpSign In
  1. Interview Questions
  2. /
  3. Grammarly

Grammarly LeetCode Interview Questions

Practice 45 real coding problems frequently asked in Grammarly technical interviews. Master these questions to ace your next Grammarly software engineering interview.

10 Easy
30 Medium
5 Hard

Top Topics at Grammarly

ArrayStringHash TableSimulationDepth-First Search

Ace your Grammarly interview with AI

Get real-time AI assistance during your actual interview. Invisible to screensharing.

Start Free Trial

Grammarly Interview Problems

ProblemDifficultyDiffFrequencyTopicsAction
Adding Spaces to a String
100%
MediumM
100%
ArrayTwo Pointers+2
Solve→
Populating Next Right Pointers in Each Node
99%
MediumM
99%
Linked ListTree+3
Solve→
IP to CIDR
85%
MediumM
85%
StringBit Manipulation
Solve→
Construct String With Repeat Limit
82%
MediumM
82%
Hash TableString+3
Solve→
Valid Parentheses
82%
EasyE
82%
StringStack
Solve→
Reverse Nodes in k-Group
80%
HardH
80%
Linked ListRecursion
Solve→
Minimum Area Rectangle
80%
MediumM
80%
ArrayHash Table+3
Solve→
Kth Smallest Element in a Sorted Matrix
76%
MediumM
76%
ArrayBinary Search+3
Solve→
Kth Missing Positive Number
75%
EasyE
75%
ArrayBinary Search
Solve→
Zero Array Transformation II
75%
MediumM
75%
ArrayBinary Search+1
Solve→
Making A Large Island
74%
HardH
74%
ArrayDepth-First Search+3
Solve→
Shortest Palindrome
72%
HardH
72%
StringRolling Hash+2
Solve→
Reverse Linked List
69%
EasyE
69%
Linked ListRecursion
Solve→
Unique Paths
67%
MediumM
67%
MathDynamic Programming+1
Solve→
Continuous Subarray Sum
66%
MediumM
66%
ArrayHash Table+2
Solve→
Valid Palindrome
65%
EasyE
65%
Two PointersString
Solve→
Longest Substring Without Repeating Characters
63%
MediumM
63%
Hash TableString+1
Solve→
Analyze User Website Visit Pattern
63%
MediumM
63%
ArrayHash Table+1
Solve→
Roman to Integer
63%
EasyE
63%
Hash TableMath+1
Solve→
Maximum Product Subarray
55%
MediumM
55%
ArrayDynamic Programming
Solve→
Diagonal Traverse
54%
MediumM
54%
ArrayMatrix+1
Solve→
Two Sum
54%
EasyE
54%
ArrayHash Table
Solve→
Open the Lock
53%
MediumM
53%
ArrayHash Table+2
Solve→
Sum Root to Leaf Numbers
50%
MediumM
50%
TreeDepth-First Search+1
Solve→
Design Snake Game
50%
MediumM
50%
ArrayHash Table+3
Solve→

Pass your interview with AI assistance

Get real-time solutions during your actual coding interview. Invisible to screensharing.

Start Free Trial
Insert into a Sorted Circular Linked List
50%
MediumM
50%
Linked List
Solve→
K Inverse Pairs Array
49%
HardH
49%
Dynamic Programming
Solve→
Take Gifts From the Richest Pile
47%
EasyE
47%
ArrayHeap (Priority Queue)+1
Solve→
Kth Smallest Element in a BST
46%
MediumM
46%
TreeDepth-First Search+2
Solve→
Two Sum II - Input Array Is Sorted
40%
MediumM
40%
ArrayTwo Pointers+1
Solve→
Capacity To Ship Packages Within D Days
36%
MediumM
36%
ArrayBinary Search
Solve→
Gas Station
33%
MediumM
33%
ArrayGreedy
Solve→
Binary Tree Maximum Path Sum
33%
HardH
33%
Dynamic ProgrammingTree+2
Solve→
Find Score of an Array After Marking All Elements
32%
MediumM
32%
ArrayHash Table+3
Solve→
Combination Sum II
32%
MediumM
32%
ArrayBacktracking
Solve→
Moving Average from Data Stream
31%
EasyE
31%
ArrayDesign+2
Solve→
Minimum Remove to Make Valid Parentheses
29%
MediumM
29%
StringStack
Solve→
Flatten Binary Tree to Linked List
29%
MediumM
29%
Linked ListStack+3
Solve→
Buildings With an Ocean View
29%
MediumM
29%
ArrayStack+1
Solve→
Rotting Oranges
29%
MediumM
29%
ArrayBreadth-First Search+1
Solve→
Check If N and Its Double Exist
27%
EasyE
27%
ArrayHash Table+3
Solve→
Group Shifted Strings
26%
MediumM
26%
ArrayHash Table+1
Solve→
Remove All Adjacent Duplicates in String II
25%
MediumM
25%
StringStack
Solve→
Remove All Occurrences of a Substring
22%
MediumM
22%
StringStack+1
Solve→
Goat Latin
22%
EasyE
22%
String
Solve→

Similar Companies

Explore interview questions from other companies with similar interview patterns.

8451˚
45 problems
Amrock
45 problems
Appian
45 problems
Appier
45 problems
Corelight
45 problems
Deezer
45 problems

Frequently Asked Questions

What LeetCode problems does Grammarly ask in interviews?

Grammarly commonly asks 45 coding problems in technical interviews, including Adding Spaces to a String, Populating Next Right Pointers in Each Node, IP to CIDR. The difficulty breakdown is 10 Easy, 30 Medium, and 5 Hard problems.

How should I prepare for a Grammarly coding interview?

Focus on the most frequently asked problems first, especially those with high frequency scores. Grammarly interviews typically emphasize Array and String. Practice explaining your thought process while coding.

What is the difficulty level of Grammarly coding interviews?

Based on our data, Grammarly interviews include 10 Easy (22%), 30 Medium (67%), and 5 Hard (11%) problems.

Ready to ace your Grammarly interview?

Join thousands of engineers who landed offers at top tech companies.

Get Started Free

No credit card required

All CompaniesEasy ProblemsMedium ProblemsHard ProblemsBrowse by Topic
Interview Solver
  • Home
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Help Center
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Discord Community
  • Affiliate Program
  • Compare
  • All Comparisons
  • vs Final Round AI
  • vs UltraCode
  • vs Interview Coder
  • vs LockedIn AI
  • vs AI Apply
  • Free Tools
  • ATS Resume Checker
  • STAR Method Builder
  • Salary Lookup
  • Big O Cheat Sheet
  • Total Comp Calculator
  • View All →
  • Interview Questions
  • Google Questions
  • Amazon Questions
  • Microsoft Questions
  • Meta Questions
  • Apple Questions
  • TikTok Questions
  • View All →
© 2026 Interview Solver, Inc. All rights reserved.