Salesforce SE Online Assessment Hackerrank experience
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.
Full Experience
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.
Interview Questions (2)
String Compression with Counts
Given 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: aaaabeee Output: a4be3.
Time Needed to Rearrange a Binary String (variant)
Similar 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).