Salesforce SE Online Assessment Hackerrank experience

salesforce logo
salesforce
· C++ Software Engineer
May 19, 2026 · 0 reads

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)

1.

String Compression with Counts

Data Structures & Algorithms·Easy

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.

2.

Time Needed to Rearrange a Binary String (variant)

Data Structures & Algorithms·Medium

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).

📣 Found this helpful? Please share it with friends who are preparing for interviews!

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!