practice a little every day, paws crossed ♡
Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 7591–7620 of 9403 results
- SalesforceMediumSoftware EngineerDiameter of an Undirected Tree
Tests your ability to traverse an unrooted, undirected tree to compute its diameter (longest simple path) in linear time and space.
Coding & AlgorithmsOnsitetreegraphbfs - SalesforceHardSoftware EngineerDiscuss Transferable Experience for a New Mobile Product Team
This question tests your ability to translate non-mobile technical expertise into a mobile context, showing maturity in identifying skill gaps and a structured approach to learning and team contribution.
Behavioral & LeadershipTechnical ScreenBehavioralEngineering-StrategyAdaptability - SalesforceMediumMachine Learning EngineerExplain ML and LLM fundamentals
This question evaluates understanding of core machine learning and LLM competencies including evaluation metrics (F1 vs accuracy), differences between classification and regression, fair benchmarking, inference pipeline bottlenecks and optimization, productionization of AI services, and modern LLM concepts such as the Transformer architecture, context engineering, retrieval-augmented generation, grounding, and guardrails. It is commonly asked in Machine Learning interviews to assess both conceptual understanding and practical application, probing the candidate's ability to reason about evaluation trade-offs, system-level performance constraints, and deployment considerations rather than only algorithmic detail.
Machine LearningOnsite - SalesforceMediumSoftware EngineerExplain background and Salesforce motivation
Explain background and Salesforce motivation evaluates behavioral evidence, ownership, communication, trade-offs, and measurable outcomes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Behavioral & LeadershipTechnical Screen - SalesforceMediumMember of Technical StaffExplain the Recursion Tree of Merge Sort
Explain the merge sort recursion tree from a five-element example through the general recurrence. Derive per-level work, uneven split height, Theta(n log n) time, merge-buffer space, call-stack depth, stability, and empty-input handling.
Software Engineering FundamentalsOnsite - SalesforceMediumSoftware EngineerFewest Add-or-Subtract Power-of-Two Steps to Reduce n to Zero
An integer problem: reduce a positive n to zero with the fewest operations, where each operation adds or subtracts a power of two. It tests reasoning about binary representations, proving a strategy optimal, and working safely with integers larger than 32 bits.
Coding & AlgorithmsOnline Assessment - SalesforceMediumSoftware EngineerFewest Repeat-Free Pieces After Deleting Every Copy of One Letter
A string problem: delete every occurrence of one chosen lowercase letter, then split what remains into the fewest contiguous pieces with no repeated letters. It tests reasoning about optimal partitions, evaluating every deletion choice efficiently, and edge cases on strings up to 200,000 characters.
Coding & AlgorithmsOnline Assessment - SalesforceMediumSoftware EngineerFind a Celebrity from a Knows Matrix
Find a celebrity in a knows matrix with linear candidate elimination followed by complete verification that the candidate knows nobody and is known by everyone else.
Coding & AlgorithmsOnsite - SalesforceMediumSoftware EngineerFind a Valid Task Execution Order with Dependencies
Tests the ability to model workflow dependencies as a directed graph, perform topological sorting, and detect cycles.
Coding & AlgorithmsOnsitegraphtopological-sortbfs - SalesforceMediumSoftware EngineerFind the Kth Smallest Value in a Binary Search Tree
Return the one-based kth smallest value from a potentially deep binary search tree represented by parallel value and child-index arrays. Handle empty trees and out-of-range values of k using the specified sentinel.
Coding & AlgorithmsOnsite - SalesforceMediumSoftware EngineerFind the Lowest Common Ancestor Using Parent Pointers
Find the lowest common ancestor of two nodes in an acyclic forest represented only by parent pointers. Return the node itself for equal inputs and minus one when the nodes belong to different trees.
Coding & AlgorithmsOnsite - SalesforceMediumSoftware EngineerFlatten Nested Objects and Lists into Full Leaf Paths
Implement an iterative traversal to flatten nested dictionaries and lists into fully-qualified paths leading only to string leaf values, returned in deterministic sorted order.
Coding & AlgorithmsOnsiteDepth-First SearchStackRecursion - SalesforceMediumSoftware EngineerGenerate All Balanced Parenthesis Strings with n Pairs in Sorted Order
Return every balanced string made of n opening and n closing parentheses, for n up to 8, sorted in ascending lexicographic order. It tests systematic generation of combinatorial strings under a validity constraint, with an exact canonical ordering of the output.
Coding & AlgorithmsTechnical Screen - SalesforceMediumSoftware EngineerGenerate Every Generalized Abbreviation of a Word
Generate every generalized abbreviation of a lowercase word by replacing selected character runs with positive counts. Merge consecutive skipped characters correctly and return the complete result in lexicographic order.
Coding & AlgorithmsOnsite - SalesforceMediumSoftware EngineerGoing Above and Beyond: Helping Others and Exceeding What Was Expected
Two behavioral prompts on going above and beyond: helping a colleague or team beyond what your role required, and delivering more than was expected on your own work. It assesses initiative, judgment about cost and scope, and impact that lasts beyond the single situation.
Behavioral & LeadershipOnsite - SalesforceMediumSoftware EngineerHelp a Colleague Resolve a Difficult Problem
Describe a specific time you helped a colleague solve a difficult problem while preserving their ownership. Show how you understood the need, contributed respectfully, and created a lasting benefit for the colleague or team.
Behavioral & LeadershipOnsite - SalesforceMediumSoftware EngineerHiring Manager Round: Current Work, Motivation for Salesforce and Keeping Up with AI
A hiring-manager conversation covering your current role and the progress on your current project, why you want to leave your company and join Salesforce, and how you keep up with AI developments. It assesses scope and impact, researched motivation and practical judgment about AI tools.
Behavioral & LeadershipOnsite - SalesforceHardSoftware EngineerHow do you perform a thorough code review?
This task evaluates a candidate's code-review proficiency across security, correctness, data modeling, concurrency, reliability, and maintainability when inspecting Python backend and SQL-based database code, and is categorized under Software Engineering Fundamentals.
Software Engineering FundamentalsOnline Assessment - SalesforceMediumSoftware EngineerImplement 64-bit modular exponentiation safely
This question evaluates proficiency in modular arithmetic, safe 64‑bit integer operations, and algorithmic techniques for overflow‑resistant modular multiplication and exponentiation.
Coding & AlgorithmsTechnical Screen - SalesforceMediumMember of Technical StaffImplement Merge Sort and Return a Sorted Array
Tests your ability to implement a classic divide-and-conquer merge sort algorithm from scratch, maintaining stability and achieving O(n log n) time complexity without relying on built-in sorting utilities.
Coding & AlgorithmsOnsitesortingdivide-and-conquerrecursion - SalesforceMediumSoftware EngineerImplement a traffic-light UI with JS
This question evaluates front-end web development competencies, including DOM manipulation, CSS-driven UI state, JavaScript timing and asynchronous state management for interactive components.
Coding & AlgorithmsTechnical Screen - SalesforceHardSoftware EngineerImplement an LFU cache
This question evaluates understanding of data structures and cache eviction policies, specifically frequency tracking for LFU caches and LRU tie-breaking among equal-frequency items.
Coding & AlgorithmsOnsite - SalesforceMediumSoftware EngineerImplement an LFU cache with O(1) operations
This problem tests your ability to maintain multiple layers of linked data structures to achieve O(1) time complexity for both access and eviction in an LFU (Least Frequently Used) cache.
Coding & AlgorithmsOnsiteData StructuresHash MapDoubly Linked List - SalesforceMediumSoftware EngineerImplement common data-structure and JS tasks
This problem tests your ability to design a time-aware data structure, manipulate linked structures, and demonstrate mastery over JavaScript's asynchronous execution model and functional programming patterns.
Coding & AlgorithmsOnsiteData StructuresLinked ListsJavaScript - SalesforceMediumSoftware EngineerMaximal Square and Longest Increasing Subsequence
This problem tests proficiency with 2D dynamic programming for geometric pattern recognition and 1D dynamic programming for sequence optimization.
Coding & AlgorithmsTechnical ScreenDynamic ProgrammingBinary SearchMatrix - SalesforceMediumSoftware EngineerMaximize events attended given date ranges
This problem tests your ability to solve a classic greedy interval scheduling variation by using sorting and a priority queue to maximize overlapping resource utilization.
Coding & AlgorithmsTechnical ScreenGreedyHeapSorting - SalesforceMediumSoftware EngineerMinimize operations to reduce integer to zero
This problem tests your ability to optimize mathematical transformations on an integer using greedy strategies or dynamic programming by analyzing the parity and binary representation of the input.
Coding & AlgorithmsOnsiteGreedyBit ManipulationRecursion - SalesforceMediumSoftware EngineerMinimize steps to reduce integer
This question evaluates algorithm design skills and proficiency with integer operations and decision-making under parity constraints, testing competencies such as bitwise reasoning, greedy and dynamic-programming intuition, and complexity analysis.
Coding & AlgorithmsTechnical Screen - SalesforceMediumSoftware EngineerMinimum Sum of Weekly Maximum Costs
Partition an array of daily costs into k contiguous weeks to minimize the sum of each week's maximum cost using dynamic programming.
Coding & AlgorithmsOnsiteDynamic ProgrammingArrayMonotonic Stack - SalesforceMediumSoftware EngineerMulti-tenant resource allocator: entity model, lifecycle state machine, optimistic locking
Low-level design question for a senior backend role: model a multi-tenant resource allocation module where customers request and release resources. It tests compact class design, an explicit resource lifecycle state machine, optimistic locking under concurrent requests, and tenant isolation enforced in code.
Software Engineering FundamentalsOther