Salesforce OA Experience | Rejected

Result
Rejected
Posted
12 Oct 2025
480 reads

Summary

I recently completed a HackerRank Online Assessment for Salesforce, which involved solving two algorithmic problems within a 75-minute timeframe. Unfortunately, I was rejected.

How it went

I took the Salesforce Online Assessment on HackerRank, which presented two coding challenges. I had 75 minutes to complete both problems. After submitting my solutions, I later received a rejection.

Questions asked (2)

  1. 01

    Longest Common Subsequence and Substring

    Data Structures & Algorithms · Medium

    Given two strings x and y, return both:

    • The length of their Longest Common Subsequence (LCS).
    • The length of their Longest Common Substring.

    Example:

    Input: x = "abcde", y = "abfce"
    Output: 
    LCS length = 3   // "abe" or "ace"
    Longest Common Substring length = 2   // "ab"
    
    Open the problem
  2. 02

    String Compression (Character Count)

    Data Structures & Algorithms · Medium

    Given a string s, compress it such that consecutive duplicate characters are replaced by the character followed by the count of its repetitions.

    If a character appears only once consecutively, just keep the character as it is.

    Return the compressed string.

    Input: s = "abbcccd"
    Output: "ab2c3d"

    Explanation:
    'a' → single → "a"
    'b' → repeated twice → "b2"
    'c' → repeated thrice → "c3"
    'd' → single → "d"

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Salesforce recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

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