Grammarly vs Salesforce Interview Questions

Grammarly lists 30 LeetCode interview questions while Salesforce lists 188. They share 9 problems — 30% of Grammarly's bank and 5% of Salesforce's. Focus on the overlap first, then drill into 21 Grammarly-only and 179 Salesforce-only questions.

Overview

Grammarly

30 questions

Easy 7Medium 19Hard 4
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

Step 1 — Shared core: Solve the 9 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Grammarly and Salesforce.

Step 2 — Company-specific depth: Add Grammarly-specific problems like Remove All Adjacent Duplicates In String, Vowel Spellchecker, Insert Delete GetRandom O(1) and Salesforce-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: Salesforce skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Grammarly
7
Salesforce
25
Medium
Grammarly
19
Salesforce
112
Hard
Grammarly
4
Salesforce
51

Top Shared Topics

9 Shared Questions

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

ProblemDifficulty
Merge IntervalsMedium
Search in Rotated Sorted ArrayMedium
Remove All Adjacent Duplicates in String IIMedium
Generate ParenthesesMedium
Word SearchMedium
Number of IslandsMedium
Maximum Palindromes After OperationsMedium
Trapping Rain WaterHard
Word BreakMedium

Unique to Grammarly (21)

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

ProblemDifficulty
Remove All Adjacent Duplicates In StringEasy
Vowel SpellcheckerMedium
Insert Delete GetRandom O(1)Medium
Climbing StairsEasy
Repeated DNA SequencesMedium
Sqrt(x)Easy
Perfect NumberEasy
Logger Rate LimiterEasy
Sum of Left LeavesEasy
Non-overlapping IntervalsMedium
Search Insert PositionEasy
Two Best Non-Overlapping EventsMedium

Unique to Salesforce (179)

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

ProblemDifficulty
Minimum Operations to Reduce an Integer to 0Medium
String CompressionMedium
Time Needed to Rearrange a Binary StringMedium
LFU CacheHard
Closest Equal Element QueriesMedium
Smallest Substring With Identical Characters IHard
Smallest Substring With Identical Characters IIHard
Remove Adjacent Almost-Equal CharactersMedium
Subarray Product Less Than KMedium
LRU CacheMedium
Maximum Number of Occurrences of a SubstringMedium
Maximum Product of Three NumbersEasy

Frequently Asked Questions

How many LeetCode questions do Grammarly and Salesforce share?

Grammarly and Salesforce share 9 LeetCode interview questions. 21 problems appear only in Grammarly's list and 179 appear only in Salesforce's list.

What topics overlap most between Grammarly and Salesforce?

The most common shared topics between Grammarly and Salesforce are Array (7 shared questions), String (5 shared questions), Dynamic Programming (3 shared questions), Sorting (2 shared questions), Stack (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Grammarly or Salesforce?

Grammarly has 7 Easy, 19 Medium, and 4 Hard questions. Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Grammarly and Salesforce?

Start with the 9 shared problems since they cover what both companies ask most often. Then add 20 Grammarly-specific and 20 Salesforce-specific questions to round out your prep.

Explore More