Skip to content

Interview Solver

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

Salesforce LeetCode Interview Questions

Practice 193 coding problems currently tagged to Salesforce. Use the frequency and topic signals to build a focused software engineering interview practice plan.

Last updated: September 28, 2026

25 Easy
117 Medium
51 Hard

Top Topics at Salesforce

ArrayStringHash TableDynamic ProgrammingSorting

Ace your Salesforce interview with AI

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

Start Free Trial

Salesforce LeetCode Interview Questions

ProblemDifficultyDiffFrequencyTopicsAction
Minimum Operations to Reduce an Integer to 0
100%
MediumM
100%
Dynamic ProgrammingGreedy+1
Solve→
String Compression
88.1%
MediumM
88.1%
Two PointersString
Solve→
Time Needed to Rearrange a Binary String
79.6%
MediumM
79.6%
StringDynamic Programming+1
Solve→
LFU Cache
78.9%
HardH
78.9%
Hash TableLinked List+2
Solve→
Closest Equal Element Queries
75.5%
MediumM
75.5%
ArrayHash Table+1
Solve→
Smallest Substring With Identical Characters I
71.5%
HardH
71.5%
ArrayBinary Search+1
Solve→
Smallest Substring With Identical Characters II
71.5%
HardH
71.5%
StringBinary Search
Solve→
Maximum Product of Three Numbers
67.8%
EasyE
67.8%
ArrayMath+1
Solve→
Remove Adjacent Almost-Equal Characters
67.8%
MediumM
67.8%
StringDynamic Programming+1
Solve→
Subarray Product Less Than K
66.4%
MediumM
66.4%
ArrayBinary Search+2
Solve→
Minimize Malware Spread
66.4%
HardH
66.4%
ArrayHash Table+4
Solve→
Maximum Number of Occurrences of a Substring
66.4%
MediumM
66.4%
Hash TableString+1
Solve→
Maximum Palindromes After Operations
66.4%
MediumM
66.4%
ArrayHash Table+4
Solve→
Merge Intervals
64.9%
MediumM
64.9%
ArraySorting+1
Solve→
LRU Cache
64.9%
MediumM
64.9%
Hash TableLinked List+2
Solve→
Course Schedule II
64.9%
MediumM
64.9%
Depth-First SearchBreadth-First Search+2
Solve→
Power Grid Maintenance
64.9%
MediumM
64.9%
ArrayHash Table+6
Solve→
Distinct Subsequences
63.3%
HardH
63.3%
StringDynamic Programming
Solve→
Longest Substring Without Repeating Characters
61.5%
MediumM
61.5%
Hash TableString+1
Solve→
Minimize Maximum Component Cost
61.5%
MediumM
61.5%
Binary SearchUnion-Find+2
Solve→
Group Anagrams
59.6%
MediumM
59.6%
ArrayHash Table+2
Solve→
Split a String in Balanced Strings
59.6%
EasyE
59.6%
StringGreedy+1
Solve→
Minimum Time to Visit All Houses
59.6%
MediumM
59.6%
ArrayPrefix Sum
Solve→
Number of Islands
57.5%
MediumM
57.5%
ArrayDepth-First Search+3
Solve→
Palindromic Substrings
57.5%
MediumM
57.5%
Two PointersString+1
Solve→

Pass your interview with AI assistance

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

Start Free Trial
Count the Number of Fair Pairs
57.5%
MediumM
57.5%
ArrayTwo Pointers+2
Solve→
Maximum Frequency Stack
57.5%
HardH
57.5%
Hash TableStack+2
Solve→
Delete and Earn
57.5%
MediumM
57.5%
ArrayHash Table+1
Solve→
Special Binary String
57.5%
HardH
57.5%
StringDivide and Conquer+1
Solve→
Decrypt String from Alphabet to Integer Mapping
57.5%
EasyE
57.5%
String
Solve→
Binary Tree Maximum Path Sum
55.1%
HardH
55.1%
Dynamic ProgrammingTree+3
Solve→
Check Whether Two Strings are Almost Equivalent
55.1%
EasyE
55.1%
Hash TableString+1
Solve→
Beautiful Towers II
55.1%
MediumM
55.1%
ArrayStack+1
Solve→
Beautiful Towers I
55.1%
MediumM
55.1%
ArrayStack+1
Solve→
Check If a Number Is Majority Element in a Sorted Array
55.1%
EasyE
55.1%
ArrayBinary Search
Solve→
Height Checker
55.1%
EasyE
55.1%
ArraySorting+2
Solve→
Matrix Similarity After Cyclic Shifts
55.1%
EasyE
55.1%
ArrayMath+2
Solve→
Number of Self-Divisible Permutations
55.1%
MediumM
55.1%
ArrayMath+5
Solve→
Maximum Number That Makes Result of Bitwise AND Zero
55.1%
MediumM
55.1%
StringGreedy+1
Solve→
Find Subarray With Bitwise OR Closest to K
55.1%
HardH
55.1%
ArrayBinary Search+2
Solve→
Equalize Strings by Adding or Removing Characters at Ends
55.1%
MediumM
55.1%
StringBinary Search+3
Solve→
Count the Number of Inversions
55.1%
HardH
55.1%
ArrayDynamic Programming
Solve→
Find the Minimum Area to Cover All Ones II
55.1%
HardH
55.1%
ArrayMatrix+1
Solve→
Find the Minimum Area to Cover All Ones I
55.1%
MediumM
55.1%
ArrayMatrix
Solve→
Maximum Height of a Triangle
55.1%
EasyE
55.1%
ArrayEnumeration
Solve→
Maximize Grid Happiness
55.1%
HardH
55.1%
Dynamic ProgrammingBit Manipulation+2
Solve→
Average Waiting Time
55.1%
MediumM
55.1%
ArraySimulation
Solve→
Find the Last Marked Nodes in Tree
55.1%
HardH
55.1%
TreeDepth-First Search
Solve→
Longest Common Subsequence
55.1%
MediumM
55.1%
StringDynamic Programming+1
Solve→
Minimum Removals to Balance Array
55.1%
MediumM
55.1%
ArrayBinary Search+2
Solve→

Pass your interview with AI assistance

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

Start Free Trial
Exam Room
55.1%
MediumM
55.1%
DesignHeap (Priority Queue)+1
Solve→
Asteroid Collision
52.4%
MediumM
52.4%
ArrayStack+1
Solve→
Number of Divisible Triplet Sums
52.4%
MediumM
52.4%
ArrayHash Table
Solve→
K-diff Pairs in an Array
52.4%
MediumM
52.4%
ArrayHash Table+3
Solve→
Reverse Nodes in k-Group
52.4%
HardH
52.4%
Linked ListRecursion
Solve→
All Nodes Distance K in Binary Tree
52.4%
MediumM
52.4%
Hash TableTree+3
Solve→
Count Subarrays With Median K
52.4%
HardH
52.4%
ArrayHash Table+1
Solve→
Longest Palindromic Substring
49.3%
MediumM
49.3%
Two PointersString+2
Solve→
Trapping Rain Water
49.3%
HardH
49.3%
ArrayTwo Pointers+3
Solve→
Best Time to Buy and Sell Stock
49.3%
EasyE
49.3%
ArrayDynamic Programming
Solve→
Min Stack
49.3%
MediumM
49.3%
StackDesign
Solve→
Zigzag Conversion
49.3%
MediumM
49.3%
String
Solve→
Report Spam Message
49.3%
MediumM
49.3%
ArrayHash Table+1
Solve→
Course Schedule
49.3%
MediumM
49.3%
Depth-First SearchBreadth-First Search+3
Solve→
Container With Most Water
45.7%
MediumM
45.7%
ArrayTwo Pointers+1
Solve→
Merge k Sorted Lists
45.7%
HardH
45.7%
Linked ListDivide and Conquer+3
Solve→
Minimum Window Substring
45.7%
HardH
45.7%
Hash TableString+1
Solve→
Kth Largest Element in an Array
45.7%
MediumM
45.7%
ArrayDivide and Conquer+3
Solve→
Top K Frequent Elements
45.7%
MediumM
45.7%
ArrayHash Table+6
Solve→
Minimum Number of Taps to Open to Water a Garden
45.7%
HardH
45.7%
ArrayDynamic Programming+1
Solve→
Maximum Units on a Truck
45.7%
EasyE
45.7%
ArrayGreedy+1
Solve→
Word Search
45.7%
MediumM
45.7%
ArrayString+3
Solve→
Minimum Absolute Difference
45.7%
EasyE
45.7%
ArraySorting
Solve→
Koko Eating Bananas
45.7%
MediumM
45.7%
ArrayBinary Search
Solve→
Optimal Account Balancing
45.7%
HardH
45.7%
ArrayDynamic Programming+3
Solve→

Pass your interview with AI assistance

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

Start Free Trial
Remove All Adjacent Duplicates in String II
45.7%
MediumM
45.7%
StringStack
Solve→
Maximum Team Size with Overlapping Intervals
45.7%
MediumM
45.7%
Solve→
Sort Colors
41.2%
MediumM
41.2%
ArrayTwo Pointers+3
Solve→
Validate Binary Search Tree
41.2%
MediumM
41.2%
TreeDepth-First Search+2
Solve→
Meeting Rooms II
41.2%
MediumM
41.2%
ArrayTwo Pointers+4
Solve→
Coin Change
41.2%
MediumM
41.2%
ArrayDynamic Programming+3
Solve→
Rotting Oranges
41.2%
MediumM
41.2%
ArrayBreadth-First Search+1
Solve→
Word Ladder
41.2%
HardH
41.2%
Hash TableString+2
Solve→
Number of Digit One
41.2%
HardH
41.2%
MathDynamic Programming+1
Solve→
Largest Number After Digit Swaps by Parity
41.2%
EasyE
41.2%
SortingHeap (Priority Queue)
Solve→
Verify Preorder Sequence in Binary Search Tree
41.2%
MediumM
41.2%
ArrayStack+5
Solve→
Gas Station
41.2%
MediumM
41.2%
ArrayGreedy
Solve→
Longest Increasing Subsequence
41.2%
MediumM
41.2%
ArrayBinary Search+2
Solve→
Number of Visible People in a Queue
41.2%
HardH
41.2%
ArrayStack+1
Solve→
Median of Two Sorted Arrays
41.2%
HardH
41.2%
ArrayBinary Search+1
Solve→
Minimum Difficulty of a Job Schedule
41.2%
HardH
41.2%
ArrayDynamic Programming
Solve→
Boundary of Binary Tree
41.2%
MediumM
41.2%
TreeDepth-First Search+1
Solve→
Odd String Difference
41.2%
EasyE
41.2%
ArrayHash Table+1
Solve→
Subarrays with K Different Integers
41.2%
HardH
41.2%
ArrayHash Table+2
Solve→
Network Delay Time
41.2%
MediumM
41.2%
Depth-First SearchBreadth-First Search+4
Solve→
Path with Maximum Gold
41.2%
MediumM
41.2%
ArrayBacktracking+1
Solve→
Design Twitter
41.2%
MediumM
41.2%
Hash TableLinked List+2
Solve→
Count Vowel Substrings of a String
41.2%
EasyE
41.2%
Hash TableString
Solve→
Collect Coins in a Tree
41.2%
HardH
41.2%
ArrayTree+2
Solve→
Generate Parentheses
41.2%
MediumM
41.2%
StringDynamic Programming+2
Solve→

Pass your interview with AI assistance

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

Start Free Trial
Minimum Replacements to Sort the Array
41.2%
HardH
41.2%
ArrayMath+1
Solve→
3Sum
35.6%
MediumM
35.6%
ArrayTwo Pointers+1
Solve→
Valid Parentheses
35.6%
EasyE
35.6%
StringStack+1
Solve→
Search in Rotated Sorted Array
35.6%
MediumM
35.6%
ArrayBinary Search
Solve→
Combination Sum
35.6%
MediumM
35.6%
ArrayBacktracking
Solve→
First Missing Positive
35.6%
HardH
35.6%
ArrayHash Table
Solve→
Maximal Square
35.6%
MediumM
35.6%
ArrayDynamic Programming+1
Solve→
Product of Array Except Self
35.6%
MediumM
35.6%
ArrayPrefix Sum
Solve→
Find Median from Data Stream
35.6%
HardH
35.6%
Two PointersDesign+3
Solve→
Decode String
35.6%
MediumM
35.6%
StringStack+1
Solve→
Two Sum
35.6%
EasyE
35.6%
ArrayHash Table
Solve→
Magnetic Force Between Two Balls
35.6%
MediumM
35.6%
ArrayBinary Search+1
Solve→
Maximum Subarray
35.6%
MediumM
35.6%
ArrayDivide and Conquer+1
Solve→
Top K Frequent Words
35.6%
MediumM
35.6%
ArrayHash Table+6
Solve→
Longest Increasing Path in a Matrix
35.6%
HardH
35.6%
ArrayDynamic Programming+7
Solve→
Find Leaves of Binary Tree
35.6%
MediumM
35.6%
TreeDepth-First Search+2
Solve→
K Closest Points to Origin
35.6%
MediumM
35.6%
ArrayMath+6
Solve→
Sliding Window Maximum
35.6%
HardH
35.6%
ArrayQueue+4
Solve→
Reorganize String
35.6%
MediumM
35.6%
Hash TableString+4
Solve→
Max Consecutive Ones III
35.6%
MediumM
35.6%
ArrayBinary Search+2
Solve→
Merge Two Sorted Lists
35.6%
EasyE
35.6%
Linked ListRecursion
Solve→
All Possible Full Binary Trees
35.6%
MediumM
35.6%
Dynamic ProgrammingTree+3
Solve→
Maximal Rectangle
35.6%
HardH
35.6%
ArrayDynamic Programming+3
Solve→
House Robber III
35.6%
MediumM
35.6%
Dynamic ProgrammingTree+3
Solve→
Reconstruct Itinerary
35.6%
HardH
35.6%
ArrayString+7
Solve→

Pass your interview with AI assistance

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

Start Free Trial
Missing Number
35.6%
EasyE
35.6%
ArrayHash Table+4
Solve→
Diameter of N-Ary Tree
35.6%
MediumM
35.6%
TreeDepth-First Search+1
Solve→
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
35.6%
MediumM
35.6%
ArrayQueue+4
Solve→
Valid Parenthesis String
35.6%
MediumM
35.6%
StringDynamic Programming+3
Solve→
Tree Diameter
35.6%
MediumM
35.6%
TreeDepth-First Search+4
Solve→
Using a Robot to Print the Lexicographically Smallest String
35.6%
MediumM
35.6%
Hash TableString+2
Solve→
Strange Printer
35.6%
HardH
35.6%
StringDynamic Programming
Solve→
Vertical Order Traversal of a Binary Tree
35.6%
HardH
35.6%
Hash TableTree+4
Solve→
Remove Stones to Minimize the Total
35.6%
MediumM
35.6%
ArrayGreedy+1
Solve→
Minimum Edge Reversals So Every Node Is Reachable
35.6%
HardH
35.6%
Dynamic ProgrammingDepth-First Search+2
Solve→
Integer to Roman
27.7%
MediumM
27.7%
Hash TableMath+1
Solve→
Roman to Integer
27.7%
EasyE
27.7%
Hash TableMath+1
Solve→
Count Binary Substrings
27.7%
EasyE
27.7%
Two PointersString
Solve→
Maximum Number of Ways to Partition an Array
27.7%
HardH
27.7%
ArrayHash Table+3
Solve→
Maximum Number of Non-overlapping Palindrome Substrings
27.7%
HardH
27.7%
Two PointersString+2
Solve→
Basic Calculator
27.7%
HardH
27.7%
MathString+2
Solve→
Exclusive Time of Functions
27.7%
MediumM
27.7%
ArrayStack
Solve→
Shortest Distance to Target String in a Circular Array
27.7%
EasyE
27.7%
ArrayString
Solve→
Game of Life
27.7%
MediumM
27.7%
ArrayMatrix+1
Solve→
Last Stone Weight
27.7%
EasyE
27.7%
ArrayHeap (Priority Queue)
Solve→
Path Sum III
27.7%
MediumM
27.7%
TreeDepth-First Search+1
Solve→
Candy
27.7%
HardH
27.7%
ArrayGreedy
Solve→
Maximum Earnings From Taxi
27.7%
MediumM
27.7%
ArrayHash Table+3
Solve→
Least Number of Unique Integers after K Removals
27.7%
MediumM
27.7%
ArrayHash Table+3
Solve→
Backspace String Compare
27.7%
EasyE
27.7%
Two PointersString+2
Solve→

Pass your interview with AI assistance

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

Start Free Trial
Design Snake Game
27.7%
MediumM
27.7%
ArrayHash Table+3
Solve→
Find Pivot Index
27.7%
EasyE
27.7%
ArrayPrefix Sum
Solve→
Encode and Decode TinyURL
27.7%
MediumM
27.7%
Hash TableString+2
Solve→
Valid Palindrome
27.7%
EasyE
27.7%
Two PointersString
Solve→
Max Chunks To Make Sorted II
27.7%
HardH
27.7%
ArrayStack+3
Solve→
Bus Routes
27.7%
HardH
27.7%
ArrayHash Table+1
Solve→
Finding the Number of Visible Mountains
27.7%
MediumM
27.7%
ArrayStack+2
Solve→
Number of Operations to Make Network Connected
27.7%
MediumM
27.7%
Depth-First SearchBreadth-First Search+2
Solve→
Find Duplicate Subtrees
27.7%
MediumM
27.7%
Hash TableTree+2
Solve→
Course Schedule III
27.7%
HardH
27.7%
ArrayGreedy+2
Solve→
House Robber II
27.7%
MediumM
27.7%
ArrayDynamic Programming
Solve→
Partition Equal Subset Sum
27.7%
MediumM
27.7%
ArrayDynamic Programming+2
Solve→
Lexicographically Minimum String After Removing Stars
27.7%
MediumM
27.7%
Hash TableString+3
Solve→
Shortest Bridge
27.7%
MediumM
27.7%
ArrayDepth-First Search+2
Solve→
Spiral Matrix
27.7%
MediumM
27.7%
ArrayMatrix+1
Solve→
Longest Substring Of All Vowels in Order
27.7%
MediumM
27.7%
StringSliding Window
Solve→
Find the Duplicate Number
27.7%
MediumM
27.7%
ArrayTwo Pointers+4
Solve→
Minimum Array Sum
27.7%
MediumM
27.7%
ArrayDynamic Programming
Solve→
Construct Binary Tree from Preorder and Inorder Traversal
27.7%
MediumM
27.7%
ArrayHash Table+3
Solve→
Burst Balloons
27.7%
HardH
27.7%
ArrayDynamic Programming
Solve→
Time Taken to Cross the Door
27.7%
HardH
27.7%
ArrayQueue+1
Solve→
Find K Closest Elements
27.7%
MediumM
27.7%
ArrayTwo Pointers+4
Solve→
Coin Change II
27.7%
MediumM
27.7%
ArrayDynamic Programming+2
Solve→
Sort Characters By Frequency
27.7%
MediumM
27.7%
Hash TableString+4
Solve→
Time Based Key-Value Store
27.7%
MediumM
27.7%
Hash TableString+2
Solve→

Pass your interview with AI assistance

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

Start Free Trial
Minimum Window Subsequence
27.7%
HardH
27.7%
StringDynamic Programming+1
Solve→
Range Sum Query 2D - Immutable
27.7%
MediumM
27.7%
ArrayDesign+2
Solve→
Partition Array Into Two Arrays to Minimize Sum Difference
27.7%
HardH
27.7%
ArrayTwo Pointers+7
Solve→
Subarray Sum Equals K
27.7%
MediumM
27.7%
ArrayHash Table+1
Solve→
Largest Rectangle in Histogram
27.7%
HardH
27.7%
ArrayStack+2
Solve→
Swim in Rising Water
27.7%
HardH
27.7%
ArrayBinary Search+7
Solve→
Combination Sum II
27.7%
MediumM
27.7%
ArrayBacktracking
Solve→
Reaching Points
27.7%
HardH
27.7%
MathEuclidean Algorithm+1
Solve→
Angle Between Hands of a Clock
27.7%
MediumM
27.7%
Math
Solve→
Permutation in String
27.7%
MediumM
27.7%
Hash TableTwo Pointers+2
Solve→
Fruit Into Baskets
27.7%
MediumM
27.7%
ArrayHash Table+1
Solve→
Construct Binary Search Tree from Preorder Traversal
27.7%
MediumM
27.7%
ArrayStack+4
Solve→
Amount of Time for Binary Tree to Be Infected
27.7%
MediumM
27.7%
Hash TableTree+3
Solve→
Find the Smallest Divisor Given a Threshold
27.7%
MediumM
27.7%
ArrayBinary Search
Solve→
Convert Sorted List to Binary Search Tree
27.7%
MediumM
27.7%
Linked ListDivide and Conquer+3
Solve→
Longest Consecutive Sequence
27.7%
MediumM
27.7%
ArrayHash Table+1
Solve→
Minimum Equal Sum of Two Arrays After Replacing Zeros
27.7%
MediumM
27.7%
ArrayGreedy
Solve→
Palindrome Partitioning
27.7%
MediumM
27.7%
StringDynamic Programming+1
Solve→

Similar Companies

Explore company practice sets with a similar number of tagged coding questions.

LinkedIn
175 problems
IBM
173 problems
Infosys
221 problems
Zoho
155 problems
Walmart Labs
152 problems
Adobe
148 problems

Frequently Asked Questions

What LeetCode problems are tagged to Salesforce?

Our current Salesforce practice dataset contains 193 tagged coding problems, including Minimum Operations to Reduce an Integer to 0, String Compression, Time Needed to Rearrange a Binary String. The difficulty breakdown is 25 Easy, 117 Medium, and 51 Hard problems.

How should I prepare for a Salesforce coding interview?

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

What is the difficulty level of Salesforce coding interviews?

Based on our data, Salesforce interviews include 25 Easy (13%), 117 Medium (61%), and 51 Hard (26%) problems.

Ready to ace your Salesforce 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
  • About
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Help Center
  • Developers
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Refund & Cancellation
  • 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.