Salesforce Coding Interview Questions: 10 Tagged Problems
10 coding problems tagged Salesforce — 10 medium — with solutions in 13 languages. Plus a study plan by topic.
- Problems: 10
- By difficulty: 10 medium
- 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
10 problems the CodeKairo catalogue tags as commonly asked in Salesforce's coding rounds — 10 medium, no hard ones — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (5), Strings (3) 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 10 problems tagged Salesforce, about 5 h 50 min of solving, grouped by technique in the order they build on each other — Strings, Counting, Sliding Window and Sorting and 5 more. It ends with the Salesforce — SWE Assessment mock.
The plan
10 problems on Strings, Counting, Sliding Window, Sorting, Binary Search, Bit Manipulation, Trees, Union Find and Dynamic Programming, easiest first within each topic.
- Make Three Strings Equal Medium
- Minimum Length of String After Operations Medium
- Frequency of the Most Frequent Element Medium
- Count Days Without Meetings Medium
- Count Ways to Group Overlapping Ranges Medium
- Maximum Number of Removable Characters Medium
- Remove All Ones With Row and Column Flips 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
All problems tagged Salesforce
Medium (10)
- 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
Topics Salesforce asks most
- Arrays 5 problems
- Strings 3 problems
- Sorting 3 problems
- Hash Table 2 problems
- Counting 2 problems
- Binary Search 2 problems
- Graph 2 problems
- Breadth-First Search 2 problems
- Depth-First Search 2 problems
- Math 1 problem
- Two Pointers 1 problem
- Sliding Window 1 problem