Salesforce Software Engineer interview: HackerRank assessment and a grid shortest path with a path follow-up

Salesforce·Software Engineer·Aug 2026
OnsiteOnline AssessmentSenior+Rejected

A Salesforce recruiter reached out to me. The process was a HackerRank online assessment, then onsite interviews.

I prepared by practising DSA problems (arrays, strings, trees, graphs and BFS/DFS) and going over common problem-solving patterns.

Round 1: HackerRank assessment

An online coding assessment: programming problems to solve within a time limit.

Round 2: Onsite DSA

I was asked a grid-based shortest path problem. You're given an N × M grid containing:

  • S is the starting position
  • P is the destination
  • . is a traversable cell
  • # is an obstacle

Find the minimum number of moves from the start to the destination, moving up, down, left or right.

I solved it with BFS and returned the minimum number of moves. The follow-up was to return the actual path from the start to the destination in addition to the distance. That means keeping each cell's parent during BFS and rebuilding the path from it.

I couldn't finish the follow-up in the time I had.

Outcome

Rejected.

Tips

  • Focus on DSA fundamentals, especially graph traversal (BFS and DFS), grid problems and shortest-path algorithms.
  • Practise solving problems under time pressure.
  • Pay attention to follow-ups. Even after you solve the main problem, they may ask you to extend it, for example from the shortest distance to the actual path.
  • Time management and clean, bug-free code are just as important in the onsite rounds.

Published

Curated and edited by PracHub

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Salesforce
Role
Software Engineer
Level
Senior+
Rounds
Online Assessment → Onsite
Outcome
Rejected
Interview date
Aug 2026

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences