Salesforce Interview Prep (AMTS / MTS / SMTS)

Salesforce runs a long loop with a behavioural component that is not decoration. The hiring manager round sits early and is weighted toward competency and values questions, and the final panel comes back to them. Candidates who sail through coding and treat trust, customer success, and equality as poster slogans get rejected on culture grounds more often than they expect.

The technical half splits by org. Platform and core teams building on the Salesforce platform ask about Apex, governor limits, triggers, and multi-tenant data modelling alongside general coding. Other teams, including much of the infrastructure, Slack, and acquired-product engineering, run an ordinary backend interview where the platform never comes up. Ask which one you are in, because preparing Apex for a generic backend loop is wasted time and the reverse is worse.


Interview Process

Stage Duration Focus
Recruiter Screen 20-30 min Org, level, location, role shape
HackerRank Online Assessment 60-90 min University hiring and some teams: 2 problems
Hiring Manager Round 45-60 min Behavioural, competency, and values; weighted heavily
Technical Round 1 45-60 min DSA, medium to hard; complexity and clean code
Technical Round 2 45-60 min Language depth; Apex and platform for some orgs
System Design 60 min MTS and above: multi-tenant service design
Final Panel 45-60 min Mixed panel, values and cross-team fit

The online assessment is standard for university hiring and sits right after resume review in the Tech Core and Futureforce pipelines, where it is the primary technical filter. Experienced-hire usage is inconsistent, so confirm whether yours includes one. Reported assessments pair a straightforward first problem with a noticeably harder second one.

Levels run AMTS (new grad and early career), MTS, SMTS, and above. Design enters around MTS. The loop commonly takes three to five weeks and runs longer for senior and specialised roles.


What Salesforce Actually Tests

Derived from 193 reported Salesforce-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 25 13%
Medium 117 61%
Hard 51 26%

Over a quarter of the list is Hard, so treat Hard problems as the baseline rather than a stretch goal.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Dynamic Programming 34 18%
2 Arrays & Hashing 23 12%
3 Trees 20 10%
4 Binary Search 16 8%
5 Graphs 16 8%
6 Sliding Window & Two Pointers 14 7%
7 Heap / Priority Queue 14 7%
8 Stack & Monotonic Stack 13 7%
9 Intervals, Greedy & Sorting 12 6%
10 Design (Coding) 10 5%

Salesforce Signature Problems

These rank high on Salesforce’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Minimum Operations to Reduce an Integer to 0 Bit Manipulation + Greedy Medium 7 of 142 LeetCode →
2 Time Needed to Rearrange a Binary String DP Medium 5 of 142 LeetCode →
3 Closest Equal Element Queries Binary Search Medium 4 of 142 LeetCode →
4 Smallest Substring With Identical Characters I Binary Search Hard 2 of 142 LeetCode →
5 Maximum Number of Occurrences of a Substring Sliding Window Medium 8 of 142 LeetCode →
6 Maximum Palindromes After Operations Greedy Medium 8 of 142 Solve →
7 Minimize Malware Spread Union-Find + Graph Hard 9 of 142 LeetCode →
8 Power Grid Maintenance Ordered Set + Union-Find Medium 7 of 142 LeetCode →
9 Minimize Maximum Component Cost Union-Find + Graph Medium 4 of 142 LeetCode →
10 Average Waiting Time Simulation + Array Medium 2 of 142 LeetCode →
11 Find the Minimum Area to Cover All Ones II Enumeration + Matrix Hard 4 of 142 LeetCode →
12 Minimum Removals to Balance Array Sliding Window + Binary Search Medium 4 of 142 LeetCode →
13 Count the Number of Inversions DP Hard 5 of 142 LeetCode →
14 Count Subarrays With Median K Prefix Sum Hard 3 of 142 LeetCode →

If you are short on time, these carry more Salesforce-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Salesforce’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Minimum Operations to Reduce an Integer to 0 Bit Manipulation + Greedy Medium LeetCode →
2 String Compression Two Pointers Medium Solve →
3 Maximum Palindromes After Operations Greedy Medium Solve →
4 Time Needed to Rearrange a Binary String DP Medium LeetCode →
5 Minimum Removals to Balance Array Sliding Window + Binary Search Medium LeetCode →
6 LFU Cache Doubly Linked List + Design Hard Solve →
7 Course Schedule II Topological Sort + Graph Medium Solve →
8 Maximum Team Size with Overlapping Intervals Implementation Medium LeetCode →
9 Merge Intervals Quicksort Medium Solve →
10 Maximum Product of Three Numbers Math + Sorting Easy Solve →
11 Minimum Replacements to Sort the Array Greedy Hard LeetCode →
12 Generate Parentheses Bracket Sequences + Backtracking Medium Solve →
13 Minimum Edge Reversals So Every Node Is Reachable Graph + BFS Hard LeetCode →
14 Remove Stones to Minimize the Total Heap + Greedy Medium LeetCode →
15 Strange Printer DP Hard LeetCode →

System Design (HLD) Problems Asked at Salesforce

# Problem Difficulty Link
1 Rules Engine (Workflow and Validation) Intermediate Read →
2 Distributed Job Scheduler Advanced Read →
3 Message Queue (Platform Events) Advanced Read →
4 Delayed Trigger Service Intermediate Read →
5 Rate Limiter (API Governor Limits) Beginner Read →
6 Notification System Intermediate Read →
7 Metrics and Monitoring System Intermediate Read →
8 Distributed Cache Intermediate Read →
9 Search Autocomplete Intermediate Read →
10 E-commerce Platform (Commerce Cloud) Advanced Read →

LLD / Machine Coding Problems Asked at Salesforce

Platform-adjacent teams ask you to model a configurable, multi-tenant feature in classes: tenant-scoped data, per-tenant limits, and extension points that customers can hook into without you shipping new code. The extensibility question is the one that separates answers here.

# Problem Difficulty Link
1 Pub Sub System Intermediate Read →
2 Rate Limiter Intermediate Read →
3 Task Scheduler Intermediate Read →
4 Inventory Management Intermediate Read →
5 Library Management Beginner Read →

DSA Problems Asked at Salesforce

84 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Salesforce’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 18 on the list.

# Problem Pattern Difficulty Link
1 Minimum Operations to Reduce an Integer to 0 Bit Manipulation + Greedy Medium LeetCode →
2 Time Needed to Rearrange a Binary String DP Medium LeetCode →
3 Remove Adjacent Almost-Equal Characters Greedy + DP Medium LeetCode →
4 Distinct Subsequences DP Hard Solve →
5 Delete and Earn DP Medium Solve →
6 Palindromic Substrings Two Pointers + DP Medium Solve →
7 Count the Number of Inversions DP Hard LeetCode →
8 Longest Common Subsequence LCS + DP Medium Solve →
9 Maximize Grid Happiness Bitmask + Memoization Hard LeetCode →
10 Number of Self-Divisible Permutations Bitmask + Number Theory Medium LeetCode →
11 Best Time to Buy and Sell Stock DP Easy Solve →
12 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
13 Minimum Number of Taps to Open to Water a Garden Greedy + DP Hard Solve →
14 Optimal Account Balancing Bitmask + Backtracking Hard Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 11 on the list.

# Problem Pattern Difficulty Link
15 Maximum Product of Three Numbers Math + Sorting Easy Solve →
16 Minimum Time to Visit All Houses Prefix Sum Medium LeetCode →
17 Average Waiting Time Simulation + Array Medium LeetCode →
18 Find the Minimum Area to Cover All Ones I Matrix + Array Medium LeetCode →
19 Find the Minimum Area to Cover All Ones II Enumeration + Matrix Hard LeetCode →
20 Matrix Similarity After Cyclic Shifts Simulation + Matrix Easy LeetCode →
21 Maximum Height of a Triangle Enumeration + Array Easy LeetCode →
22 Count Subarrays With Median K Prefix Sum Hard LeetCode →
23 Number of Divisible Triplet Sums Hash Table + Array Medium Solve →
24 Maximum Team Size with Overlapping Intervals Implementation Medium LeetCode →
25 Minimum Absolute Difference Sorting + Array Easy Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 10 on the list.

# Problem Pattern Difficulty Link
26 Closest Equal Element Queries Binary Search Medium LeetCode →
27 Smallest Substring With Identical Characters I Binary Search Hard LeetCode →
28 Smallest Substring With Identical Characters II Binary Search Hard LeetCode →
29 Subarray Product Less Than K Sliding Window + Prefix Sum Medium Solve →
30 Count the Number of Fair Pairs Binary Search + Two Pointers Medium LeetCode →
31 Check If a Number Is Majority Element in a Sorted Array Binary Search Easy LeetCode →
32 Minimum Removals to Balance Array Sliding Window + Binary Search Medium LeetCode →
33 K-diff Pairs in an Array Binary Search + Two Pointers Medium LeetCode →
34 Koko Eating Bananas Binary Search Medium Solve →
35 Median of Two Sorted Arrays Divide and Conquer + Binary Search Hard Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 9 on the list.

# Problem Pattern Difficulty Link
36 Maximum Palindromes After Operations Greedy Medium Solve →
37 Merge Intervals Quicksort Medium Solve →
38 Split a String in Balanced Strings Greedy Easy LeetCode →
39 Special Binary String Divide and Conquer Hard Solve →
40 Height Checker Bubble Sort + Counting Sort Easy LeetCode →
41 Maximum Number That Makes Result of Bitwise AND Zero Greedy Medium LeetCode →
42 Maximum Units on a Truck Greedy Easy LeetCode →
43 Gas Station Greedy Medium Solve →
44 Minimum Replacements to Sort the Array Greedy Hard LeetCode →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 7 on the list.

# Problem Pattern Difficulty Link
45 Minimize Malware Spread Union-Find + Graph Hard LeetCode →
46 Course Schedule II Topological Sort + Graph Medium Solve →
47 Power Grid Maintenance Ordered Set + Union-Find Medium LeetCode →
48 Minimize Maximum Component Cost Union-Find + Graph Medium LeetCode →
49 Number of Islands Union-Find + BFS Medium Solve →
50 Course Schedule DAG + Topological Sort Medium Solve →
51 Collect Coins in a Tree Topological Sort + Graph Hard LeetCode →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 6 on the list.

# Problem Pattern Difficulty Link
52 LFU Cache Doubly Linked List + Design Hard Solve →
53 LRU Cache Doubly Linked List + Design Medium Solve →
54 Maximum Frequency Stack Ordered Set + Design Hard LeetCode →
55 Exam Room Ordered Set + Design Medium LeetCode →
56 Min Stack Design + Stack Medium Solve →
57 Design Twitter Linked List + Design Medium LeetCode →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 6 on the list.

# Problem Pattern Difficulty Link
58 Group Anagrams Sorting + Hash Table Medium Solve →
59 Decrypt String from Alphabet to Integer Mapping String Easy LeetCode →
60 Check Whether Two Strings are Almost Equivalent Counting + Hash Table Easy LeetCode →
61 Report Spam Message Hash Table + String Medium LeetCode →
62 Zigzag Conversion String Medium Solve →
63 Count Vowel Substrings of a String Hash Table + String Easy Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 5 on the list.

# Problem Pattern Difficulty Link
64 Binary Tree Maximum Path Sum DP on Trees + Binary Tree Hard Solve →
65 Find Subarray With Bitwise OR Closest to K Segment Tree + Bit Manipulation Hard LeetCode →
66 Find the Last Marked Nodes in Tree Tree + DFS Hard LeetCode →
67 All Nodes Distance K in Binary Tree Binary Tree + BFS Medium LeetCode →
68 Boundary of Binary Tree Binary Tree + DFS Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 5 on the list.

# Problem Pattern Difficulty Link
69 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
70 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
71 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →
72 Largest Number After Digit Swaps by Parity Heap Easy LeetCode →
73 Meeting Rooms II Prefix Sum + Heap Medium Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 5 on the list.

# Problem Pattern Difficulty Link
74 String Compression Two Pointers Medium Solve →
75 Maximum Number of Occurrences of a Substring Sliding Window Medium LeetCode →
76 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
77 Container With Most Water Greedy + Two Pointers Medium Solve →
78 Minimum Window Substring Sliding Window Hard Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 4 on the list.

# Problem Pattern Difficulty Link
79 Beautiful Towers I Monotonic Stack Medium LeetCode →
80 Beautiful Towers II Monotonic Stack Medium LeetCode →
81 Asteroid Collision Stack Medium Solve →
82 Remove All Adjacent Duplicates in String II Stack Medium Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 2 on the list.

# Problem Pattern Difficulty Link
83 Equalize Strings by Adding or Removing Characters at Ends Hash Function + Sliding Window Medium LeetCode →
84 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →

Salesforce’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 18 (20%) Minimum Operations to Reduce an Integer to 0, Time Needed to Rearrange a Binary String, Remove Adjacent Almost-Equal Characters
2 Arrays & Hashing High 11 (12%) Maximum Product of Three Numbers, Minimum Time to Visit All Houses, Average Waiting Time
3 Binary Search High 10 (11%) Closest Equal Element Queries, Smallest Substring With Identical Characters I, Smallest Substring With Identical Characters II
4 Intervals, Greedy & Sorting Medium-High 9 (10%) Maximum Palindromes After Operations, Merge Intervals, Split a String in Balanced Strings
5 Graphs Medium-High 7 (8%) Minimize Malware Spread, Course Schedule II, Power Grid Maintenance
6 Design (Coding) Medium-High 6 (7%) LFU Cache, LRU Cache, Maximum Frequency Stack
7 Strings Medium 6 (7%) Group Anagrams, Decrypt String from Alphabet to Integer Mapping, Check Whether Two Strings are Almost Equivalent
8 Trees Medium 5 (6%) Binary Tree Maximum Path Sum, Find Subarray With Bitwise OR Closest to K, Find the Last Marked Nodes in Tree
9 Heap / Priority Queue Medium 5 (6%) Kth Largest Element in an Array, Merge k Sorted Lists, Top K Frequent Elements
10 Sliding Window & Two Pointers Medium 5 (6%) String Compression, Maximum Number of Occurrences of a Substring, Longest Substring Without Repeating Characters

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Arrays & Hashing, Binary Search covers the bulk of what Salesforce actually asks. The rest is insurance for the one round that goes somewhere unexpected.


Platform Loop vs Core Backend Loop

Salesforce engineering spans the metadata-driven platform, the core services underneath it, and a long list of acquired products. The coding bar is similar across them; the second technical round is not.

  Platform and app teams Core, infrastructure, and acquired products
Second technical round Apex, triggers, SOQL, governor limits, metadata model Java, Scala, or Go depth, concurrency, JVM or runtime internals
Data modelling Multi-tenant objects, custom fields, sharing and visibility rules Schema design, partitioning, indexing, storage engine behaviour
Design prompts Configurable workflow, rules engines, async and batch processing Distributed services, queues, caches, monitoring pipelines
What to revise Bulk patterns, async Apex, why limits exist Standard distributed systems preparation
Shared across both Medium DSA, multi-tenancy reasoning, values rounds Same

The values and hiring manager rounds are identical in both tracks, which is why they are the safest place to invest preparation time before you know which org you landed in.


Values and Hiring Manager Questions

# Question
1 Tell me about a time you earned the trust of a skeptical stakeholder. (Trust)
2 Tell me about a time you changed your plan because of what a customer told you. (Customer Success)
3 Tell me about a time you made a process or product more accessible or inclusive. (Equality)
4 Tell me about a time you tried something new that did not work out. (Innovation)
5 Tell me about a time you had to deliver bad news to a customer or partner.
6 Tell me about a time you disagreed with your manager and how you handled it.
7 Tell me about a time you took ownership of something nobody else wanted.
8 How do you prioritise when support escalations collide with roadmap work?
9 Why Salesforce, and which of our values resonates most with how you work?

Salesforce names trust, customer success, innovation, equality, and sustainability as its values, and interviewers do map answers to them. Prepare one concrete story per value with the customer or business outcome stated. Avoid reusing the same project for all five.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) Minimum Operations to Reduce an Integer to 0, Time Needed to Rearrange a Binary String, Remove Adjacent Almost-Equal Characters
2 Dynamic Programming (part 2) Distinct Subsequences, Delete and Earn, Palindromic Substrings
3 Arrays & Hashing (part 1) Maximum Product of Three Numbers, Minimum Time to Visit All Houses, Average Waiting Time
4 Arrays & Hashing (part 2) Find the Minimum Area to Cover All Ones I, Find the Minimum Area to Cover All Ones II, Matrix Similarity After Cyclic Shifts
5 Binary Search (part 1) Closest Equal Element Queries, Smallest Substring With Identical Characters I, Smallest Substring With Identical Characters II
6 Binary Search (part 2) Subarray Product Less Than K, Count the Number of Fair Pairs, Check If a Number Is Majority Element in a Sorted Array
7 Intervals, Greedy & Sorting Maximum Palindromes After Operations, Merge Intervals, Split a String in Balanced Strings
8 Graphs Minimize Malware Spread, Course Schedule II, Power Grid Maintenance
9 Design (Coding) LFU Cache, LRU Cache, Maximum Frequency Stack
10 Strings Group Anagrams, Decrypt String from Alphabet to Integer Mapping, Check Whether Two Strings are Almost Equivalent
11 Trees Binary Tree Maximum Path Sum, Find Subarray With Bitwise OR Closest to K, Find the Last Marked Nodes in Tree
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Salesforce Interviews

  1. Ask whether the role is platform or generic backend. It determines whether Apex, governor limits, triggers, and multi-tenant data modelling are in scope or entirely irrelevant.
  2. Treat the hiring manager round as a technical gate too. It sits early, it is weighted toward behavioural and values questions, and a weak showing there ends the loop before you reach the coding rounds.
  3. Write one story per value with a measurable outcome. Trust, customer success, innovation, equality, sustainability. Generic teamwork anecdotes score poorly against a named value.
  4. Do not stop at medium. Salesforce has one of the higher Hard shares on this site, and reported HackerRank sets pair an approachable first question with a markedly harder second, sometimes a graph problem. Pace the assessment so you reach it with time left.
  5. For design rounds, lead with multi-tenancy. Tenant isolation, per-tenant limits and noisy neighbours, metadata-driven configuration, and how one customer cannot degrade another. That is the core architectural idea Salesforce is built on.
  6. Know why limits exist, not just what they are. If platform questions come up, the useful answer explains that governor limits protect shared capacity, then reasons about bulk patterns and async processing from there.
  7. Expect a multi-round loop with a final panel. Four to seven conversations over three to five weeks is normal, and the panel revisits values after the technical rounds have closed.

Other Company Prep


Round structure, assessment usage, and level mapping reflect commonly reported candidate experiences alongside Salesforce's published university recruiting pages. Experienced-hire loops vary by org and year. Confirm the format with your recruiter.