Salesforce Interview Questions
Practice the exact questions companies are asking right now.
Design a coffee ordering system
System Design: Coffee Ordering System Design a system for a coffee shop (or chain) that supports ordering drinks. Core use cases - Customer browses me...
Design an analytics dashboard for an AI chat app
Scenario Design an analytics dashboard for a ChatGPT-like AI chat product. The dashboard is used by Product/Engineering/Support to monitor product hea...
Design an async job system and cache layer
Design two systems. You can assume a large-scale production environment; focus on clear APIs, data models, scaling, reliability, and trade-offs. Part ...
Write SQL for top spender and non-spenders
SQL Questions Assume the following schema: - users(user_id, created_at, ...) - transactions(txn_id, user_id, amount, txn_ts) - amount is a positive ...
Design a file sync and sharing service
Scenario Design a cloud file storage, sync, and sharing service similar to a consumer/team drive product. Core requirements - Upload/download files fr...
Remove duplicates and find constrained longest subsequence
You are given two independent coding tasks. Task 1: Remove duplicates from a linked list Given the head of a singly linked list (not necessarily sorte...
Answer ownership, conflict, and failure recovery questions
You are in a 45-minute hiring manager (behavioral) interview. Prepare structured answers to: 1. Ownership: Describe a project where you showed the mos...
Flatten a nested JSON object
Problem You are given a JSON-like value representing an object that may contain: - Objects / dictionaries (string keys) - Arrays / lists - Primitive v...
Implement a traffic-light UI with JS
Frontend Coding: Traffic Light Build a simple traffic light component using HTML + CSS + JavaScript. Requirements - Render a vertical traffic light wi...
Solve sliding window, heap, DP, in-place tasks
You are given several LeetCode-style coding tasks. Implement each with the stated time/space goals and handle edge cases. 1) Sliding Window: longest s...
Describe a memorable bug and persuasion story
Behavioral Questions Q1: Most memorable bug Tell me about the most memorable/impactful bug you encountered in your work experience. - What was the use...
Find longest subsequence of x that is a substring of y
Given two strings x and y, compute the maximum length of a string s such that: - s is a subsequence of x (can delete zero or more characters from x wi...
Solve array duplicate flags and binary swaps
Problem 1: Flag duplicates on the left and right You are given an integer array nums of length n. For each index i, determine: 1. Left-duplicate: whet...
Design a 911 emergency calling service
System Design Prompt Design a 911 emergency calling service (or emergency call routing platform) that allows users to place emergency calls from mobil...
Implement an LFU cache
Problem: LFU Cache Design and implement a Least Frequently Used (LFU) cache with a fixed capacity. The cache supports the following operations: - get(...
Remove duplicates from a singly linked list
You are given the head of a singly linked list of integers. Modify the list in place so that it contains only the first occurrence of each value (i.e....
Design a recommendation system
Design a User–Item Recommendation System Context You are asked to design an end-to-end recommendation service that suggests items to users. The servic...
Flatten nested JSON into a string map
Problem You are given an input JSON object that may contain nested objects and arrays. Your task is to flatten it into a single-level key/value mappin...
Design cloud & k8s architecture
Technical Screen: Kubernetes, Cloud Services, and Secure CI/CD Context You are designing and operating services on Kubernetes in a public cloud. Answe...
Implement 64-bit modular exponentiation safely
Implement a function to compute (a^b) mod m where 0 ≤ a,b < 2^61−1 and 1 ≤ m < 2^61−1 using only 64-bit operations without overflow. Provide implement...