Salesforce backend engineer interviews typically focus on APIs, databases, system design, concurrency, caching, and data structures.
No verified questions yet for Salesforce.
MessageQueue class that supports sending messages, receiving messages, and keeping track of pending messages.Example method signatures:void send(String message) - adds a message to the queue.String receive() - returns and removes the front message from the queue.boolean isEmpty() - checks if the queue is empty.Example 1:send("Update Customer")null1 <= message.length() <= 25010^5 messages efficiently.RateLimiter class to limit the number of requests a user can make within a specified time frame.Example method signatures:boolean allowRequest(String userId) - returns true if the request can be allowed, false otherwise.void resetRequests(String userId) - resets the request count for a user after their time window has expired.Example 1:userId = "user1", limit = 5, windowInSeconds = 60true1 <= limit <= 1001 <= windowInSeconds <= 3600.k consecutive days.Example method signatures:int maxEngagement(int[] engagement, int k) - returns the maximum sum of engagement metrics over any k consecutive days.Example 1:engagement = [1, 2, 3, 4, 5], k = 3123 + 4 + 5 = 12.Constraints:1 <= |engagement| <= 10^51 <= k <= |engagement|.Node class, identify the shortest path from a source to all other nodes using Dijkstra's algorithm.Example method signatures:List<Node> shortestPath(Node source) - returns a list of shortest paths from the source node to all other nodes.Example 1:source = Node A[Node B, Node C, Node D]1 <= |nodes| <= 1000Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free