SALESFORCE · CODING QUESTIONS

Salesforce coding interview questions

The data structures and algorithms questions candidates report from Salesforce interviews, linked to AlgoRung problems with an editor, hidden tests, an animated walkthrough and solutions in four languages. Most asked topics: Arrays & Hashing, Heaps, Stack, Dynamic Programming.

From public candidate reports and Salesforce's careers pages, checked November 2026. Processes vary by team. AlgoRung is not affiliated with Salesforce.

All 5 reported Salesforce coding questions

Difficulty
Topic
5 questions
  1. Trapping Rain Water Hard Arrays & Hashing also Amazon, Microsoft, Goldman Sachs +1
  2. Max Stack Hard Design Data Structures also LinkedIn
  3. Maximum Frequency Stack Hard Design Data Structures
  4. Min Stack Medium Design Data Structures
  5. Coin Change Medium Dynamic Programming also Google, Airbnb, Goldman Sachs
Also reported, not on AlgoRung yet (2)

Remove Stones to Minimize the Total · Simplify Path

How the coding round is scored · The online assessment

Questions people ask

What coding questions does Salesforce ask?

Candidates most often report Trapping Rain Water, Max Stack, Maximum Frequency Stack, Min Stack, Coin Change. The full list of 5 reported questions is on this page, each linked to a practice problem with solutions.

Which topics should I study for the Salesforce coding interview?

heaps, stacks, dynamic programming, arrays, two pointers, graphs. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.

How hard are Salesforce coding questions?

Of the reported questions on AlgoRung, 0 are easy, 2 medium and 3 hard. Expect mostly medium problems, with follow-ups that change a constraint.

Coding questions at other companies

Coding questions across all companies · Behavioral questions