Salesforce interview practice

Salesforce interview questions

126 questions; coding questions sorted by reports.

FastPrep has 109 coding questions tagged Salesforce, plus 12 system design and 5 low-level design questions. Filter them by interview stage and open any one to practice it.

Questions
126 (109 coding, 17 design and project)
By stage
Online Assessment 62 · Phone Screen 11 · Onsite 36
Updated

Question list

All 109 Salesforce coding questions

Sorted by how many times each question was reported. Pick a stage to see only its questions.

Showing 109 of 109 Salesforce questions.

QuestionDifficultyStageReports
Minimum No-Repeat Segments After One Character RemovalStringGreedyMediumOA4 reports · last Nov 2026
Count Subarrays With Product Equal to KArrayTwo PointersMediumOA3 reports · last Dec 2026
LFU CacheDesignHash TableHardOnsite3 reports · last Sep 2026
Run-Length String CompressionStringTwo PointersEasyOA3 reports · last Sep 2026
Get Minimum TimeRecursionGreedyHardOA2 reports · last Nov 2026
Rotting OrangesArrayMatrixMediumOnsite2 reports · last Nov 2026
Meeting Rooms IIArraySortingMediumOnsite2 reports · last Oct 2026
LRU CacheHash TableLinked ListMediumOnsite2 reports · last Sep 2026
Maximum Requests in WindowArraySortingMediumOA2 reports · last Sep 2026
Diameter of an Acyclic Undirected GraphGraphTreeMediumOnsite2 reports · last Aug 2026
Final Pod Counts After LogsArraySimulationMediumOA2 reports · last Aug 2026
Minimum Removals to Balance ArrayArraySortingMediumOA2 reports · last Aug 2026
Longest Increasing SubsequenceArrayBinary SearchMediumPhone2 reports · last Jul 2026
Maximal SquareArrayMatrixMediumPhone2 reports · last Jul 2026
Minimum Operations to ZeroUnratedOA2 reports · last Jul 2026
Minimize Total Input Cost (for LTMS)ArrayGreedyMediumOA2 reports · last Jun 2026
Longest Subsequence which is a SubstringStringTwo PointersHardOA2 reports · last Dec 2025
Count Increasing TripletsArrayMediumOnsite1 report · last Nov 2026
Longest Substring Without Repeating CharactersHash TableStringMediumOnsite1 report · last Nov 2026
Reverse a Sublist of a Linked ListLinked ListMediumOnsite1 report · last Nov 2026
3Sum SmallerArrayTwo PointersMediumOnsite1 report · last Nov 2026
Count Zero Request ServersArrayHash TableMediumOnsite1 report · last Nov 2026
Get Message StatusQueueHash TableMediumOA1 report · last Nov 2026
Group Identical Tree LevelsTreeBreadth-First SearchMediumOnsite1 report · last Oct 2026
Detect a Cycle in a Linked ListLinked ListTwo PointersEasyPhone1 report · last Oct 2026
Find Rows Common to Two TablesDatabaseEasyPhone1 report · last Oct 2026
Merge Two Sorted Linked ListsLinked ListTwo PointersEasyPhone1 report · last Oct 2026
Construct a Tree from Level-Order and Inorder TraversalsArrayHash TableHardOnsite1 report · last Sep 2026
Maximize Monsters DefeatedArraySortingMediumOnsite1 report · last Sep 2026
Minimum Unique-Character Segments After DeletionStringGreedyMediumOA1 report · last Sep 2026
Flatten Nested Map Paths with a StackStackStringMediumOnsite1 report · last Sep 2026
Kth Largest Element in an ArrayArraySortingMediumOnsite1 report · last Sep 2026
Maximum Stock Profit with Unlimited TransactionsArrayDynamic ProgrammingMediumOnsite1 report · last Sep 2026
Budget-Constrained Project SelectionArrayDynamic ProgrammingMediumOnsite1 report · last Sep 2026
House RobberArrayDynamic ProgrammingMediumOnsite1 report · last Sep 2026
Path With Maximum ProbabilityGraphHeapMediumOnsite1 report · last Sep 2026
Valid ParenthesesStringStackEasyOnsite1 report · last Sep 2026
Implement Merge SortArraySortingMediumOnsite1 report · last Sep 2026
Sorted Doubly Linked List to Balanced BST In PlaceLinked ListTreeMediumOnsite1 report · last Sep 2026
Top K Frequent Elements After Each Stream UpdateHash TableHeapHardOnsite1 report · last Sep 2026
Path SumTreeDepth-First SearchEasyOnsite1 report · last Aug 2026
Find the Celebrity from Pairwise AcquaintancesArrayGreedyMediumOnsite1 report · last Aug 2026
Minimum Window of Required WordsStringHash TableMediumPhone1 report · last Aug 2026
Minimum Word Ladder LengthBreadth-First SearchGraphHardOnsite1 report · last Aug 2026
Permutations of Unique CharactersStringBacktrackingMediumPhone1 report · last Aug 2026
Reconstruct Flight Departure ChainsGraphHash TableMediumOnsite1 report · last Aug 2026
Surviving Balls after Directional CollisionsArrayStackMediumOnsite1 report · last Aug 2026
Deepest Common Ancestors in a Multi-Parent DAGGraphDepth-First SearchHardOnsite1 report · last Aug 2026
Dynamic Order-Statistic Binary Search TreeTreeDesignHardOnsite1 report · last Aug 2026
Generate All Valid Word AbbreviationsStringBacktrackingMediumOnsite1 report · last Aug 2026
Kth Smallest Element in a Binary Search TreeTreeStackMediumOnsite1 report · last Aug 2026
Lowest Common Ancestor with Parent PointersTreeTwo PointersMediumOnsite1 report · last Aug 2026
Validate a Word AbbreviationStringTwo PointersEasyOnsite1 report · last Aug 2026
Is This Date a Weekend?StringMathEasyOA1 report · last Aug 2026
Minimum Window SubstringStringHash TableHardPhone1 report · last Aug 2026
Optimal Account BalancingArrayHash TableHardPhone1 report · last Jul 2026
Maximum Barbell WeightArrayBinary SearchHardOA1 report · last Jul 2026
Count Prime StringsUnratedOnsite1 report · last Jun 2026
ATM Queue Exit OrderQueueSimulationMediumPhone1 report · last May 2026
Good Ways to Split an ArrayArrayPrefix SumMediumPhone1 report · last May 2026
Time Needed to Rearrange a Binary StringStringDynamic ProgrammingMediumOA1 report · last May 2026
Generate Seen Binary StringsArrayHash TableEasyOA1 report · last May 2026
Update Pod Counts From LogsArrayHeapHardOA1 report · last May 2026
Key Teams in TreeUnratedOA1 report · last Mar 2026
System Energy ReductionUnratedOA1 report · last Mar 2026
Update Logs by Symmetric XORUnratedOA1 report · last Mar 2026
Count Palindromic Concatenation PairsUnratedOA1 report · last Mar 2026
Collect Opportunity Data in a TreeTreeDepth-First SearchHardOA1 report · last Feb 2026
Replace '?' to Avoid Adjacent DuplicatesStringDynamic ProgrammingMediumOA1 report · last Feb 2026
Strings With No k Consecutive Identical CharactersDynamic ProgrammingCombinatoricsMediumOA1 report · last Feb 2026
Spam Text ClassificationUnratedOA1 report · last Aug 2025
Viewable Profiles by UserUnratedOA1 report · last Aug 2025
Maximize Movie Ratings With Skip LimitUnratedOnsite1 report · last Jul 2025
Integrity ScoreUnratedOA1 report · last Jul 2025
Spam ClassificationStringHash TableEasyOA1 report · last Jun 2025
Min Elements to Remove to Make Almost Sorted ArrayArrayDynamic ProgrammingHardOA1 report · last Jun 2025
String Compression ProblemStringTwo PointersEasyOA1 report · last Jun 2025
Find Longest Subsequence Common to X as Substring in Y (MLE :)Dynamic ProgrammingStringHardOA1 report · last Mar 2025
Find Words in String Not in Subsequence (MLE :)StringTwo PointersEasyOA1 report · last Mar 2025
Split Array Largest SumArrayDynamic ProgrammingMediumOA1 report · last Mar 2025
Bit Pattern (MTS)ArrayHash TableEasyOA1 report · last Feb 2025
Get Special Substring (MTS)StringSliding WindowEasyOA1 report · last Feb 2025
Max Number of OperationsStringGreedyHardOA1 report · last Feb 2025
Tool ChangerArraySimulationEasyOA1 report · last Nov 2024
Maximize Sum of Processed TimesDynamic ProgrammingGreedyHardOA1 report · last Oct 2024
Visible TowersStackArrayMediumOA1 report · last Oct 2024
Get Max EfficiencyArraySortingHardOA1 report · last Oct 2024
Get Maximum Sum of StrengthsArraySortingMediumOA1 report · last Oct 2024
Get Node To RemoveGraphUnion FindMediumOA1 report · last Oct 2024
Min Cost to Complete All ProjectsArrayHash TableEasyOA1 report · last Oct 2024
Find Minimum IdlenessStringBinary SearchMediumOA1 report · last Sep 2024
Closest Subsequence SumArrayBinary SearchHardOA1 report · last Sep 2024
Minimum DifferenceArraySortingEasyOA1 report · last Sep 2024
Get Minimum Development TimeArrayBinary SearchMediumOA1 report · last Sep 2024
Schedule Batch DifferenceArraySortingMediumOA1 report · last Sep 2024
Minimize Length of Longest SubstringStringBinary SearchMediumOA1 report · last Sep 2024
Find All Pairs of IntegersArrayMathMediumOA1 report · last Sep 2024
Get Perfect Pairs CountArrayMathMediumOA1 report · last Aug 2024
Minimal OperationsStringGreedyEasyOA1 report · last Aug 2024
Find Number of Perfect PairsArrayMathMediumOA1 report · last Aug 2024
Least Hours to Implement FeaturesGreedySortingMediumOA1 report · last Aug 2024
Count Numbers with Unique DigitsArrayHash TableEasyOA1 report · last Jul 2024
Minimize Path ValueGraphShortest PathMediumOA1 report · last Jul 2024
Same SubstringStringSliding WindowMediumOA1 report · last Jul 2024
Count Minimum Operations to Reduce DimensionsMathSimulationEasyOA1 report · last Jun 2024
Construct Winning SequenceGreedyMathMediumOA1 report · last May 2024
Plan Cuts 🐡ArrayGreedyMediumOA1 report · last Mar 2024
Count SubstringsStringTwo PointersMediumOA1 report · last Mar 2024
Min Deletions to Almost SortedArrayDynamic ProgrammingHardOA1 report · last Mar 2024

At a glance

Salesforce interview process

FastPrep has 109 Salesforce coding interview questions: 62 questions from the online assessment (OA), 11 questions from phone screens and 36 questions from onsite rounds. Most are medium (59 medium, 20 easy and 20 hard). The most common topics are Array, String, Greedy, Hash Table and Dynamic Programming. The latest report is from Dec 2026.

  • Online Assessment

    62 questions · 28 medium, 14 easy and 12 hard

    Topics: Array, Greedy and String

    Latest report: Dec 2026

  • Phone Screen

    11 questions · 6 medium, 3 easy and 2 hard

    Topics: Array, Hash Table and String

    Latest report: Oct 2026

  • Onsite

    36 questions · 25 medium, 6 hard and 3 easy

    Topics: Array, Hash Table and Tree

    Latest report: Nov 2026

By stage and level

Salesforce questions by stage and level

01 · Preparation plan

Practice relationships, text windows, and indexed state.

Salesforce searches can mean developer certification, administrator interviews, or general software engineering. This page owns the software-engineering intent: use the public graph and coding catalog first, then explore multi-tenant and integration design exercises when they match your target role. This is a suggested practice order, not Salesforce's interview process. Your invitation and recruiter come first.

  1. 01

    Reason about graph distance

    Use tree diameter to explain how an acyclic graph differs from an arbitrary network. Establish why your traversal strategy finds a farthest endpoint before relying on it.

    • Test a chain, a star, and a single-node graph.
    • Track distance independently from traversal order.
    • State whether the prompt guarantees connectivity.
    Practice: Diameter of an Acyclic Undirected Graph
  2. 02

    Preserve multiplicities in a text window

    The required-words exercise is a useful check on whether a sliding window tracks counts or merely presence. Clarify how repeated required words affect a valid answer.

    • Build the required-word frequency contract.
    • Shrink only while the window remains valid.
    • Handle no solution and equal-length candidates explicitly.
    Practice: Minimum Window of Required Words
  3. 03

    Maintain an index after updates

    The order-statistic tree exercise makes update correctness visible. Relate subtree metadata to queries before extending the discussion to the public multi-tenant index design.

    • State the invariant stored at each node.
    • Recheck metadata after insertion and deletion.
    • Compare update cost with query latency.
    Practice: Dynamic Order-Statistic Binary Search Tree

02 · Design and project questions

17 Salesforce design and project questions

Beyond coding questions, FastPrep has 12 system design and 5 low-level design questions tagged Salesforce.

System designLast reported Dec 2026

Design an Event-Driven Notification System

Design a reliable multi-channel notification platform for a high-cardinality internal producer fleet, with durable event handoff, fair admission, priority classes, bulk sends paced under provider rate limits, provider isolation, and recoverable poison messages.

Practice
System designLast reported Dec 2026

Design a Durable Work Orchestration Platform

Design a durable, tenant-fair workflow control plane for fast I/O and slow LLM tasks, with quota-aware dispatch, resumable progress, asynchronous waits and reliable stream-to-result commits.

Practice
System designLast reported Nov 2026

Design a URL Shortening Service

Design a deliberately small URL-shortening core, then evolve it into a highly available service whose fixed logical shards can move safely as physical storage capacity grows.

Practice
Low-level designLast reported Nov 2026

Design an Elevator Control System

Model elevator cars, hall and cabin requests, dispatch assignment, movement state, and safe fault handling.

Practice
System designLast reported Nov 2026

Design an Online Payment Processing System

Design a reliable payment path that turns an order into one captured charge and reconciles uncertain provider outcomes.

Practice
System designLast reported Oct 2026

Design Ride-Hailing Dispatch and Trip Lifecycle

Design the data model and regional services that match riders with nearby drivers while preserving a single active assignment.

Practice
Low-level designLast reported Oct 2026

Design Movie Subscription Pricing

Model versioned subscription plans, renewal prices, plan-change quotes, prorated adjustments, and retry-safe activation.

Practice
System designLast reported Oct 2026

Design a Goal-Driven Tool-Using Agent

Design a safe, durable service that turns a user goal into observable multi-step tool execution.

Practice
Low-level designLast reported Sep 2026

Design an In-Memory Job Scheduler

Model a thread-safe scheduler for delayed and recurring jobs with cancellation, rescheduling, and controlled execution.

Practice
System designLast reported Sep 2026

Design Coffee-Shop Ordering and Fulfillment

Accept customizable pickup orders, reserve limited items, coordinate payment and preparation, and expose a reliable queue state.

Practice
Low-level designLast reported Sep 2026

Ludo Game Object Model

Design the in-memory domain model for a complete Ludo match, including legal moves, captures, turn progression, victory, and configurable rule variants.

Practice
System designLast reported Aug 2026

Design a Third-Party SaaS Integration Platform

Design a multi-tenant connector platform and review a vendor-backed internal API for reliable, consistent behavior across services such as Gmail and Slack.

Practice
Low-level designLast reported Aug 2026

Design a Connect Four Game

Model a two-player game, legal disc placement, turn order, win detection, draw state, and replayable history.

Practice
System designLast reported Aug 2026

Design a Real-Time Direct Messaging System

Design durable one-to-one and small-group messaging with ordered conversation history, offline delivery, and multi-device synchronization.

Practice
System designLast reported Aug 2026

Design a Multi-Tenant Order-Statistics Index

Design a frequently updated tenant-aware index that answers kth-smallest record queries safely.

Practice
System designLast reported Aug 2026

Design an Enterprise Multi-Tenant Messaging Platform

Design isolated organization messaging with ordered conversations, search, presence, read cursors, and offline delivery.

Practice
System designLast reported Jul 2026

Design a Rental Car Reservation System

Design a reservation platform that protects limited vehicle inventory under concurrent demand and operational shortages.

Practice

03 · About these questions

Where these Salesforce questions come from

Each question on this page is tagged Salesforce in FastPrep's problem bank. The report count and month show how often and how recently it was reported from Salesforce interviews.

Past reports help you choose what to practice first. They can't tell you which questions, format or platform your own interview will use.

  • Only questions tagged Salesforce appear on this page.
  • Each coding question shows its stage and last report date when known.
  • These are not official, private or leaked Salesforce questions.

04 · FAQ

Salesforce interview questions: FAQ

For hiring news and timelines, see the Salesforce hiring insights page.

01What are the stages of the Salesforce interview?

The 109 Salesforce coding questions on FastPrep come from the online assessment (62 questions), phone screens (11 questions) and onsite rounds (36 questions). Stages differ by role, level and date, so check your invitation for your own process.

02What does the Salesforce OA look like?

62 of the 109 Salesforce coding questions on FastPrep come from the online assessment. By difficulty: 28 medium, 14 easy and 12 hard. Common OA topics: Array, Greedy and String. The latest OA report is from Dec 2026.

03How hard is the Salesforce interview?

Most Salesforce coding questions on FastPrep are medium. By difficulty, the 99 rated questions are 59 medium, 20 easy and 20 hard.

04What topics come up in Salesforce coding interviews?

Across 109 Salesforce coding questions, the most common topics are Array (44 questions), String (27 questions), Greedy (21 questions), Hash Table (17 questions) and Dynamic Programming (16 questions).

05What are the most asked Salesforce interview questions?

The most reported questions are “Minimum No-Repeat Segments After One Character Removal” (4 reports), “Count Subarrays With Product Equal to K” (3 reports) and “LFU Cache” (3 reports).

06Is this a Salesforce administrator or Apex certification course?

No. The exercises support general software-engineering interviews: algorithms, data structures, implementation, and public design practice. They do not establish coverage of administrator configuration, Apex-specific exams, or Salesforce certification requirements. Choose those specialist resources separately when they appear in your job description.

07Is FastPrep affiliated with Salesforce?

No. FastPrep is an independent interview prep site and is not affiliated with Salesforce. These are practice questions from FastPrep's problem bank, not official, private or leaked Salesforce questions.

08How do you know which stage a Salesforce question is from?

Each question's stage comes from the reports behind it. A question can be reported from more than one stage, and the process can change by role, level, location and year, so treat the stage as a guide, not a promise.

09Which Salesforce interview stage should I practice first?

The stage named in your invitation or recruiter message. If you don't know the stage yet, start with the stage that has the most questions, then practice explaining and testing your code out loud.

10Can this page tell me exactly what my Salesforce interview will ask?

No. Report counts, stages and dates show what came up before and help you choose what to practice first. They can't predict the questions, order, timing or platform of your own interview.

Next step

Pick a question. Solve it end to end.

Start with the stage named in your invitation. Past reports show what came up before, not what you will be asked.

Back to the question list