Salesforce Coding Interview Questions
20 coding questions reported by candidates who interviewed at Salesforce, out of 28 Salesforce questions we track. They average 2.6/5 difficulty (medium). Most common topics: String, Hashmap, Linked List, Array. 20 were reported asked within the last year, most recently in October 2026.
Practice Salesforce questions →Difficulty
- 1/5 — warm-up2
- 2/5 — easy4
- 3/5 — medium13
- 4/5 — hard1
Asked for SWE (20), MLE (2), Infra (1)
Reported Salesforce coding questions
Merge Two Sorted Linked Lists Into One In Place
1/5A staple linked-list exercise: two chains that are each already in order must become one ordered chain. Success depends on reusing the existing nodes rather than building new ones, on resolving equal values in a defined order, and on handling the case where one input runs out before the other.
asked October 2026CodingLinked ListTwo PointersDetect a Cycle in a Linked List
1/5An introductory linked-list round question about a chain of nodes that might loop back on itself. You report whether the structure ever revisits a node, under a strict memory budget that rules out remembering every node seen. It rewards knowing why comparing values is wrong, and how two references moving at different rates can settle the question.
asked October 2026CodingLinked ListTwo PointersCampaign Cost Weekly Partition
3/5This Salesforce coding interview question challenges you to organize an array of promotional expenses into a fixed number of contiguous sequential periods. The objective is to minimize the accumulated peak costs across all designated intervals by strategically dividing the dataset. It evaluates your grasp of advanced array manipulation and optimization strategies. To explore the full problem statement along with a fully implemented model solution, please consider subscribing to our platform.
asked June 2026ArrayDynamic ProgrammingString Compression (LeetCode 443)
3/5In this classic Salesforce assessment challenge, engineers must perform run-length data compaction directly inside a character array without allocating external memory buffers. The exercise tests your mastery of pointer manipulation, in-place data transformation, and constant space complexity constraints under tight performance expectations. Unlock the comprehensive editorial, optimal algorithmic strategies, and complete code walkthrough by acquiring a paid subscription.
asked April 2026StringTwo PointerString ProcessingMinimum Operations to Reduce an Integer to 0 (LeetCode 2571)
3/5Encountered frequently in Salesforce technical screenings, this algorithmic puzzle requires determining the fewest arithmetic steps needed to reach zero from a given numeric value by repeatedly adding or subtracting powers of two. The task evaluates your grasp of binary representations, greedy choice properties, and optimal substructure when navigating state spaces. Working through this challenge hones your ability to recognize bitwise patterns and optimize recursive transitions. Access to the full problem breakdown and a clean, production-ready solution requires an active subscription.
asked April 2026Bit ManipulationGreedyMathMaximum Requests in a Time Window
2/5In this technical challenge reported from a Salesforce online assessment, candidates must determine the highest frequency of events falling within a sliding time interval of fixed duration. The problem evaluates your ability to efficiently analyze sequential numerical data and optimize window-based queries without resorting to slow brute-force scans. You will need to apply smart pointer or sorting strategies to handle large inputs smoothly. Unlock the complete problem statement and model implementation by securing a subscription.
asked March 2026ArraySliding WindowTwo PointerMaximum Number of Palindromic Strings (OA)
3/5This Salesforce online assessment challenge evaluates your ability to analyze character frequencies across a collection of text elements. By permitting unlimited character redistribution between different items, the task tests how effectively you can optimize symmetry and maximize the quantity of items that meet mirror-symmetry criteria simultaneously. It requires clever counting strategies and greedy allocation logic to determine the upper limit. Access to the complete problem breakdown and the optimal code solution requires a subscription.
asked March 2026StringGreedyPalindromesOnsite Mini Project — Concurrent Web Crawler
3/5Prepare for high-pressure system design rounds with this Salesforce onsite hands-on mini project, which requires building a concurrent web scraper under tight time constraints. You will need to demonstrate live coding proficiency, manage asynchronous requests, process and sort data according to strict criteria, and generate CSV exports while clearly narrating your thought process. Unlock the full project specifications and a production-grade model solution with a subscription.
asked March 2026PythonConcurrencyWeb CrawlerProject Deep Dive (AI Engineer Loop)
3/5Prepare for the project deep dive round in the Salesforce artificial intelligence engineering interview loop by reviewing how to structure your past architectural decisions, technical trade-offs, and scaling challenges. This assessment evaluates your ability to communicate complex system design choices clearly using visual aids and comprehensive technical breakdowns. Discovering strategic ways to present your engineering background can greatly improve your hiring odds. Access to the full problem breakdown and expert model solutions requires a subscription.
asked March 2026Deep DivePresentationML KnowledgeCode Review OA — Python Files (Salesforce / Slack)
3/5This Salesforce and Slack joint assessment tests your code comprehension and software evaluation abilities in a realistic take-home format. You will inspect a small codebase containing Python scripts and database interactions to uncover hidden defects, architectural flaws, and maintainability concerns. The task measures your attention to detail and ability to communicate professional engineering feedback effectively. Gain full access to the source repository overview and the complete grading rubric by purchasing a subscription.
asked March 2026Code ReviewCode ReadingSQLCloud / Domain Knowledge Oral Round (GCP / AWS / K8s)
3/5Prepare for a conceptual cloud and orchestration interview loop reported at Salesforce, where candidates face deep conversational queries regarding platform infrastructure and container management systems. This verbal assessment evaluates your understanding of distributed environments, scaling strategies, and infrastructure deployment pipelines, even when pivoting between different cloud providers. You will discuss architectural trade-offs, resource allocation mechanics, and operational best practices without writing actual code. Unlock the complete evaluation guide and expert insights by purchasing a subscription.
asked March 2026Domain KnowledgeCs FundamentalsInfraTypeScript Refactor OA (HackerRank — fullstack)
3/5This full-stack refactoring assessment, administered via HackerRank for Salesforce interviews, evaluates your ability to clean up messy TypeScript codebases filled with conditional logic and duplicated operations. You will fix failing snapshot unit tests, expand test coverage, and restructure the architecture into a maintainable rule-driven design while keeping all tests passing. The comprehensive problem description and model solution require an active subscription.
asked February 2026RefactoringCode ReadingTypescriptFrontend Curry: addTwoNumbers -> addThreeNumbers(a)(b)(c)
2/5Featured in Salesforce recruitment rounds, this frontend engineering exercise focuses on functional programming by asking candidates to transform a standard summation utility into a curried invocation chain. It tests a deep understanding of closures, higher-order functions, and JavaScript evaluation patterns. Candidates frequently encounter follow-up requirements that generalize the function for an arbitrary number of arguments. The complete problem requirements and the professional model solution are available exclusively to subscribers.
asked January 2026CurryingFrontendJavascriptSingly Linked List — Remove Duplicate Values
2/5As a classic online assessment question for Salesforce engineering positions, this task requires you to clean up a singly linked sequence by eliminating all subsequent nodes that share duplicate values. The challenge tests your pointer manipulation skills and your ability to process linear data structures either in-place or through clean reference restructuring. Maintaining optimal time complexity while preserving the initial unique elements is the primary goal. The full problem and model solution require a subscription.
asked January 2026Linked ListHashmapDeduplicationFrontend Traffic Light (HTML / CSS / JS)
3/5Build an interactive UI component in this popular frontend challenge from Salesforce, frequently given to full-stack candidates. You will construct a visual signaling device that transitions through timed states using only HTML, CSS, and vanilla JavaScript without external libraries. This exercise tests your DOM manipulation skills, asynchronous timing management, and ability to coordinate state changes cleanly in a browser environment. The complete problem statement and model solution require a subscription.
asked January 2026FrontendTraffic LightJavascriptLFU Cache (LeetCode 460)
4/5Reported as a technical assessment at Salesforce, this challenge requires designing a specialized data structure that maintains elements with restricted storage limits while executing lookups and updates in constant time. The core evaluation centers on efficiently tracking access frequencies and managing tie-breaking eviction policies when capacity limits are reached. Unlock the full problem breakdown and verified model solution by getting a subscription.
asked January 2026Linked ListHashmapDesignLongest Subsequence of X That Is a Substring of Y
3/5Combining string subsequences and contiguous matching constraints forms the core of many advanced text-processing assessments. Featured in a Salesforce technical screening, this problem challenges you to find the longest character sequence from one string that simultaneously exists as a contiguous segment inside another. The evaluation tests your proficiency with dynamic programming states and sequence alignment logic under strict performance bounds. Access the full problem walkthrough and model solution by securing a subscription today.
asked January 2026Dynamic ProgrammingStringSubsequenceFlatten Nested JSON / HashMap to String
3/5This technical coding challenge commonly seen at Salesforce examines your ability to manipulate hierarchical structures using recursion or iterative traversal. You are asked to transform a deeply nested associative structure into a single-level layout utilizing dot-separated keys for leaf elements. This tests your proficiency in handling diverse data types, managing recursive base cases, and restructuring complex information cleanly. Unlock the full problem details and optimal algorithmic solution with our comprehensive subscription.
asked January 2026RecursionDFSJSONBinary String Synchronous '01' -> '10' Replacement
3/5This Salesforce intern assessment challenge asks you to calculate the duration required for a binary string to stop changing as adjacent character patterns simultaneously shift over discrete time steps. It tests your ability to model state transitions and optimize string transformation processes. The full problem description and model solution require a subscription.
asked December 2025StringBinary StringSimulationArray Left / Right Duplicate Check (Binary Strings)
2/5Featured as an initial problem in a Salesforce coding challenge, this task requires you to analyze an integer array and determine historical and future occurrences for each element. You will test your efficiency in scanning sequences and encoding presence flags into binary strings that indicate whether a value appears earlier or later in the collection. Unlock the full problem details, optimal linear-time approaches, and the complete model solution with a paid subscription.
asked December 2025ArrayHashmapString
Recent Salesforce interview experiences
Full loops shared by candidates, every round included.
Salesforce coding interview FAQ
- What coding questions does Salesforce ask?
- 20 reported coding questions, most often on String, Hashmap, Linked List, Array, Two Pointer.
- How hard is the Salesforce coding interview?
- The reported coding questions average 2.6 out of 5: 2 at 1/5, 4 at 2/5, 13 at 3/5, 1 at 4/5.
- Are these Salesforce coding questions recent?
- The most recent report is from October 2026, and 20 were reported within the last twelve months. Dates come from the interview reports themselves.