Salesforce Interview Experience

Experience
6 years
Posted
26 Jul 2025
342 reads

Summary

I had a hiring drive interview at Salesforce on July 26th, 2025. The interview included project discussions and three DSA questions: finding the max subtree sum, max square size in a binary matrix, and max rectangle size in a binary matrix. I was rejected, and I believe it was because I couldn't fully code the third problem within the given time.

How it went

Hiring drive interview - 26th July 2025

Yoe - 6

Past experience: PBC

Round1:

Asked about the project details. 1 API Schema

Then 3 DSA Questions:

1. Find max Subtree sum in a binary tree.

2. Find Max Square size in Binary matrix

3. Find Max rectangle size in binary matrix.

Questions has to be solved on whiteboard.

I was to solve 1st question completely. Struggled a bit on Time and Space complexity.

For 2nd Question, I was able to provide the intuition and the approach to solve the problem. Interviewer seems satistisfied with the appraoch. So they moved to 3rd Question.

For 3rd Question, I was able to somehow come up with the approach. And explained the same, the intuition and thought process behind it. But the time was over so could write the code for it.

Verdict: Rejected

Self Analysis: I think they were expecting me to write the code for the 3rd problem as well within in the given time. Overall it was a good experience. And i think expectations are lot now a days. 1 Medium + 2 Hard Questions + Project discussion in 1 hour is a lot.

Questions asked (3)

  1. 01

    Find Max Subtree Sum in Binary Tree

    Data Structures & Algorithms · Medium

    Find max Subtree sum in a binary tree.

  2. 02

    Find Max Square Size in Binary Matrix

    Data Structures & Algorithms · Hard

    Find Max Square size in Binary matrix.

  3. 03

    Find Max Rectangle Size in Binary Matrix

    Data Structures & Algorithms · Hard

    Find Max rectangle size in binary matrix.

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!