Salesforce Coding Interview Questions

We track 178 coding questions asked at Salesforce, tagged with the algorithms and concepts they test. The most common: Array, String, Hash Table, Dynamic Programming, Sorting.

Browse all 178 Salesforce questions →

Concept mix

Each question's weight is split evenly across its concepts, so the shares sum to 100%.

How many questions involve each concept

Share of all 178 tracked Salesforce questions that touch each concept. Questions usually involve several, so these overlap.

Where Salesforce differs from the average company

Concept weight at Salesforce relative to the average across all companies we track. Green means Salesforce leans on it harder than most.

Salesforce specialties

Concepts that show up at Salesforce but are rarely asked elsewhere. They are easy to get blindsided by.

Difficulty mix

Level split of the 178 tracked Salesforce questions.

  • Junior15% (26)
  • Mid/Senior59% (105)
  • Staff26% (47)

Every concept in Salesforce interviews

ConceptQuestions% of questionsShare of mix
Array10257.3%19.7%
String4927.5%10.2%
Hash Table4625.8%7.0%
Dynamic Programming3821.3%7.8%
Sorting3318.5%4.8%
Binary Search2312.9%4.0%
Heap (Priority Queue)2312.9%2.8%
Greedy2111.8%3.6%
Depth-First Search2011.2%2.5%
Stack2011.2%3.6%
Two Pointers179.6%3.2%
Breadth-First Search169.0%2.2%
Matrix137.3%2.2%
Tree137.3%1.8%
Binary Tree126.7%1.6%
Sliding Window126.7%1.9%
Counting116.2%1.3%
Graph Theory116.2%1.4%
Design105.6%1.5%
Math95.1%1.5%
Simulation84.5%1.5%
Backtracking73.9%1.5%
Divide and Conquer73.9%0.9%
Linked List73.9%1.3%
Prefix Sum73.9%1.3%
Recursion73.9%1.5%
Monotonic Stack63.4%0.9%
Bit Manipulation52.8%0.7%
Union-Find52.8%0.6%
Enumeration42.2%0.8%
Memoization42.2%0.4%
Topological Sort42.2%0.5%
Bucket Sort31.7%0.2%
Doubly-Linked List31.7%0.4%
Ordered Set31.7%0.3%
Quickselect31.7%0.3%
Trie31.7%0.3%
Binary Search Tree21.1%0.2%
Data Stream21.1%0.2%
Monotonic Queue21.1%0.2%
Queue21.1%0.2%
Bitmask10.6%0.1%
Counting Sort10.6%0.2%
Eulerian Circuit10.6%0.1%
Geometry10.6%0.1%
Hash Function10.6%0.1%
Merge Sort10.6%0.1%
Segment Tree10.6%0.1%
Shortest Path10.6%0.1%

Practice a Salesforce interview

Take a realistic AI-led mock interview with questions Salesforce actually asks, with live voice and real feedback.

Start a mock interview

Your first interview is free · no credit card required