Salesforce Coding Interview Questions: 12 Tagged Problems
12 coding problems tagged Salesforce — 11 medium · 1 hard — with solutions in 13 languages. Plus a study plan by topic.
- Problems: 12
- By difficulty: 11 medium · 1 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
12 problems the CodeKairo catalogue tags as commonly asked in Salesforce's coding rounds — 11 medium and 1 hard — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (5), Strings (4) and Sorting (3). CodeKairo's Salesforce — SWE Assessment mock covers the Salesforce software engineering assessment pattern: two narrative coding problems in seventy-five minutes, with no aptitude section. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Salesforce, which CodeKairo is not affiliated with.
Salesforce study plan by topic
All 12 problems tagged Salesforce, about 7 h 15 min of solving, grouped by technique in the order they build on each other — Strings, Counting, Two Pointers and Sliding Window and 6 more. It ends with the Salesforce — SWE Assessment mock.
The plan
12 problems on Strings, Counting, Two Pointers, Sliding Window, Sorting, Bit Manipulation, Trees, Graph, Union Find and Dynamic Programming, easiest first within each topic.
- Make Three Strings Equal Medium
- Minimum Length of String After Operations Medium
- Maximum Number of Removable Characters Medium
- Last Substring in Lexicographical Order Hard
- Frequency of the Most Frequent Element Medium
- Count Days Without Meetings Medium
- Count Ways to Group Overlapping Ranges Medium
- Remove All Ones With Row and Column Flips Medium
- Sum of Nodes with Even-Valued Grandparent Medium
- Number of Nodes in the Sub-Tree With the Same Label Medium
- Count the Number of Complete Components Medium
- Count Ways To Build Good Strings Medium
Then: the timed test
Sit the Salesforce — SWE Assessment mock under the clock — the coding problems are only one part of the round.
Salesforce test patterns
- Salesforce — SWE Assessment pattern guide and timed mock
The Salesforce interview process, round by round
All problems tagged Salesforce
Medium (11)
- Sum of Nodes with Even-Valued Grandparent Tree, Depth-First Search, Breadth-First Search
- Make Three Strings Equal String
- Count Ways to Group Overlapping Ranges Array, Sorting, Math
- Minimum Length of String After Operations Hash Table, String, Counting
- Count Days Without Meetings Array, Sorting
- Number of Nodes in the Sub-Tree With the Same Label Hash Table, Tree, Graph
- Count the Number of Complete Components Graph, Union Find, Depth-First Search
- Remove All Ones With Row and Column Flips Array, Matrix, Bit Manipulation
- Count Ways To Build Good Strings Dynamic Programming
- Maximum Number of Removable Characters Array, String, Binary Search
- Frequency of the Most Frequent Element Array, Sliding Window, Greedy
Hard (1)
- Last Substring in Lexicographical Order String, Two Pointers
Topics Salesforce asks most
- Arrays 5 problems
- Strings 4 problems
- Sorting 3 problems
- Breadth-First Search 3 problems
- Depth-First Search 3 problems
- Hash Table 2 problems
- Counting 2 problems
- Two Pointers 2 problems
- Binary Search 2 problems
- Trees 2 problems
- Graph 2 problems
- Math 1 problem