Salesforce SE Online Assessment Hackerrank experience
- Posted
- 19 May 2026
Summary
I completed the Salesforce C++ Software Engineer online assessment on Hackerrank, solving two questions of easy and medium difficulty within 75 minutes and achieving the required 80% score.
How it went
Recently appeared in hackerrank OA for a C++ Software Engineer Role.
There were 2 questions with easy and medium difficulty to complete in 75 mins with marks 50 and 75 respectively.
Question 1: Almost similar to LC 443. String Compression Input: aaaabeee Output: a4be3 (if char is repeating more than once then only display count)
Question 2: LC 2380. Time Needed to Rearrange a Binary String but with a different context.
Qualification criteria: 80% score
Cheers.
Questions asked (2)
- 01
String Compression with Counts
Data Structures & Algorithms · Easy
Open the problemGiven a string, compress it by replacing consecutive repeated characters with the character followed by the count (only if the count is greater than one). Example: Input:
aaaabeeeOutput:a4be3. - 02
Time Needed to Rearrange a Binary String (variant)
Data Structures & Algorithms · Medium
Open the problemSimilar to LeetCode 2380 – given a binary string, determine the minimum number of seconds required to rearrange the string so that no two adjacent characters are the same, following the operation rules defined in the original problem (the exact context was altered for the interview).