Salesforce Online Assessment Experience for SMTS Backend (2024)
Question Details
Salesforce SMTS Backend Online Assessment Overview *
Experience Level: 6.5 Years *
Source: Careers Portal *
Platform: HackerRank *
Format: 2 Questions, 75 Minutes **Problem 1: Mini
Full Details
Salesforce SMTS Backend Online Assessment Overview *
Experience Level: 6.5 Years *
Source: Careers Portal *
Platform: HackerRank *
Format: 2 Questions, 75 Minutes
Problem 1: Minimum Operations to Reduce to Zero Given a positive integer n, find the minimum number of operations required to convert n to 0. *
Rule: In each operation, choose any integer i (where i ≥ 0) and either add or subtract 2^i from the current value. *
Output:
Return the minimum count of operations.
Problem 2: Maximum Requests in Window Given an integer array timestamp and an integer windowSize, determine the peak request volume. *
Goal: Identify the maximum number of requests occurring within any continuous time window of windowSize minutes. *
Output:
Return the integer denoting the maximum requests observed.
About This Question
This is a reported interview question from a salesforce interview for a swe role during the oa round reported in 2025.
It covers the following topics: Arrays .