← Salesforce roles

Interview question tracker

Salesforce Coding Interview Questions — All time

Practice 185 coding questions from Salesforce company-tagged LeetCode lists across all available reporting periods. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 185

DoneQuestionLeetCode
Minimum Operations to Reduce an Integer to 0Solve
Closest Equal Element QueriesSolve
LFU CacheSolve
Search Suggestions SystemSolve
String CompressionSolve
Subarray Product Less Than KSolve
Count the Number of Fair PairsSolve
Design a Text EditorSolve
Distinct SubsequencesSolve
Find Subarray With Bitwise OR Closest to KSolve
Height CheckerSolve
LRU CacheSolve
Maximum Frequency StackSolve
Maximum Number of Occurrences of a SubstringSolve
Merge IntervalsSolve
Minimize Malware SpreadSolve
Minimize Maximum Component CostSolve
Minimum Number of Taps to Open to Water a GardenSolve
Power Grid MaintenanceSolve
Remove Adjacent Almost-Equal CharactersSolve
Smallest Substring With Identical Characters ISolve
Smallest Substring With Identical Characters IISolve
Average Waiting TimeSolve
Beautiful Towers ISolve
Beautiful Towers IISolve
Best Time to Buy and Sell StockSolve
Binary Tree Maximum Path SumSolve
Check If a Number Is Majority Element in a Sorted ArraySolve
Check Whether Two Strings are Almost EquivalentSolve
Count Subarrays With Median KSolve
Count the Number of InversionsSolve
Course Schedule IISolve
Delete and EarnSolve
Equalize Strings by Adding or Removing Characters at EndsSolve
Find the Last Marked Nodes in TreeSolve
Find the Minimum Area to Cover All Ones ISolve
Find the Minimum Area to Cover All Ones IISolve
Group AnagramsSolve
Integer to RomanSolve
K-diff Pairs in an ArraySolve
Longest Common SubsequenceSolve
Longest Palindromic SubstringSolve
Longest Substring Without Repeating CharactersSolve
Matrix Similarity After Cyclic ShiftsSolve
Maximize Grid HappinessSolve
Maximum Height of a TriangleSolve
Maximum Number That Makes Result of Bitwise AND ZeroSolve
Maximum Product of Three NumbersSolve
Minimum Time to Visit All HousesSolve
Number of Divisible Triplet SumsSolve
Number of IslandsSolve
Number of Self-Divisible PermutationsSolve
Palindromic SubstringsSolve
Split a String in Balanced StringsSolve
Trapping Rain WaterSolve
3SumSolve
All Nodes Distance K in Binary TreeSolve
Asteroid CollisionSolve
Coin ChangeSolve
Container With Most WaterSolve
Count Binary SubstringsSolve
Count Palindromic SubsequencesSolve
Daily TemperaturesSolve
Decode StringSolve
Divide Array Into Arrays With Max DifferenceSolve
Kth Largest Element in an ArraySolve
Largest Number After Digit Swaps by ParitySolve
Longest Increasing Path in a MatrixSolve
Magnetic Force Between Two BallsSolve
Maximal SquareSolve
Maximize Greatness of an ArraySolve
Maximum SubarraySolve
Maximum Units on a TruckSolve
Meeting Rooms IISolve
Min StackSolve
Minimum Absolute DifferenceSolve
Minimum Window SubstringSolve
Number of Digit OneSolve
Odd String DifferenceSolve
Report Spam MessageSolve
Reverse Nodes in k-GroupSolve
Search in Rotated Sorted ArraySolve
Sum of Nodes with Even-Valued GrandparentSolve
Task SchedulerSolve
The kth Factor of nSolve
Top K Frequent ElementsSolve
Top K Frequent WordsSolve
Two SumSolve
Valid ParenthesesSolve
Validate Binary Search TreeSolve
Word BreakSolve
Word LadderSolve
Word SearchSolve
Zigzag ConversionSolve
Accounts MergeSolve
All Possible Full Binary TreesSolve
Backspace String CompareSolve
Basic CalculatorSolve
Best Time to Buy and Sell Stock IIISolve
Boundary of Binary TreeSolve
Bus RoutesSolve
CandySolve
Cheapest Flights Within K StopsSolve
Combination SumSolve
Concatenated WordsSolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Count the Number of Infection SequencesSolve
Course ScheduleSolve
Course Schedule IIISolve
Decode WaysSolve
Design Snake GameSolve
Encode and Decode TinyURLSolve
Exclusive Time of FunctionsSolve
Find Duplicate SubtreesSolve
Find Leaves of Binary TreeSolve
Find Median from Data StreamSolve
Find Peak ElementSolve
Find Pivot IndexSolve
Find the CelebritySolve
Finding the Number of Visible MountainsSolve
First Missing PositiveSolve
Flatten Binary Tree to Linked ListSolve
Game of LifeSolve
Gas StationSolve
Generate ParenthesesSolve
House Robber IIISolve
IPOSolve
Isomorphic StringsSolve
Jump GameSolve
K Closest Points to OriginSolve
Koko Eating BananasSolve
Kth Largest Element in a StreamSolve
Largest NumberSolve
Last Stone WeightSolve
Least Number of Unique Integers after K RemovalsSolve
Letter Combinations of a Phone NumberSolve
Longest Increasing SubsequenceSolve
Lowest Common Ancestor of a Binary TreeSolve
Masking Personal InformationSolve
Max Area of IslandSolve
Max Chunks To Make Sorted IISolve
Max Consecutive Ones IIISolve
Maximal RectangleSolve
Maximum Earnings From TaxiSolve
Maximum Number of Non-overlapping Palindrome SubstringsSolve
Maximum Number of Ways to Partition an ArraySolve
Maximum Product SubarraySolve
Maximum Profit in Job SchedulingSolve
Median of Two Sorted ArraysSolve
Merge k Sorted ListsSolve
Merge Two Sorted ListsSolve
Minimum Difficulty of a Job ScheduleSolve
Minimum Equal Sum of Two Arrays After Replacing ZerosSolve
Missing NumberSolve
Move ZeroesSolve
N-QueensSolve
Network Delay TimeSolve
Number of Operations to Make Network ConnectedSolve
Number of ProvincesSolve
Number of Visible People in a QueueSolve
Optimal Account BalancingSolve
Partition Array Into Two Arrays to Minimize Sum DifferenceSolve
Path Sum IIISolve
Paths in Maze That Lead to Same RoomSolve
Populating Next Right Pointers in Each NodeSolve
Pow(x, n)Solve
Product of Array Except SelfSolve
Range AdditionSolve
Reaching PointsSolve
Reconstruct ItinerarySolve
Remove All Adjacent Duplicates in String IISolve
Reorganize StringSolve
Roman to IntegerSolve
Rotate ImageSolve
Rotting OrangesSolve
Shortest Distance to Target String in a Circular ArraySolve
Sliding Window MaximumSolve
Sort ColorsSolve
Split Array Largest SumSolve
Subarrays with K Different IntegersSolve
SubsetsSolve
Target SumSolve
Valid PalindromeSolve
Verify Preorder Sequence in Binary Search TreeSolve
Wildcard MatchingSolve