Salesforce
Salesforce

Software Engineer SMTS

Best Time to Buy and Sell Stock III

Medium
ROUND 2 (DSA and Problem solving)CodingCandidate Selected

Solve the problem of obtaining the maximum profit by making at most two transactions given an array representing the price of a stock on each day. Implement a solution with optimal time complexity.

This question was asked in

Salesforce Software Engineer SMTS Interview Experience

The Salesforce interview process consisted of five rounds, which included coding challenges in Round 1 focused on dynamic programming and grid traversal, followed by more problem-solving questions in Round 2. Rounds 3 and 4 concentrated on system design, covering topics such as a library management system and Google Drive architecture, while the final round with the hiring manager focused on behavioral and managerial aspects. Overall, the difficulty level of the interview experience at Salesforce was moderate to challenging, requiring both technical and interpersonal skills.

AI Powered

Share Your Story

Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.

Take Mock Interview

Prepare better with expert feedback

Want to Connect 1:1?

Connect with me 1:1 for career guidance, resume reviews, interviews, and more.

Show Your Love!

Connect with us on social media