Salesforce backend engineer interviews typically focus on APIs, databases, system design, concurrency, caching, and data structures.
No verified questions yet for Salesforce.
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