Salesforce | SMTS | OA
Summary
I recently completed the Online Assessment for a Staff Member of Technical Staff (SMTS) Backend role at Salesforce, which involved two coding questions on Hackerrank.
Full Experience
I recently applied for a Staff Member of Technical Staff (SMTS) Backend role at Salesforce through their careers portal. After applying, I was invited to complete an Online Assessment on Hackerrank. The assessment consisted of two coding questions, and I had 75 minutes to complete them.
Interview Questions (2)
Given a positive integer n, find the minimum number of operations required to convert n to 0. In each operation, you can choose any integer i (where i ≥ 0) and either add or subtract 2^i from n. The answer should return the minimum number of operations required to reduce n to 0.
Given an integer array timestamp and an integer windowSize, find the maximum number of requests that occur within any continuous time window of a specified range. The function should return an integer denoting the maximum requests observed in any window of windowSize minutes.