Kotak Mahindra Bank | SDE-2 | Interview Experience
- Posted
- 4 Nov 2026
Summary
I cleared the second technical round for the SDE-2 role at Kotak Mahindra Bank and was selected.
How it went
Round 2 - DSA / Problem-Solving Round
In my second technical round for the SDE-2 role at Kotak, I was asked two DSA problems, both based on the Best Time to Buy and Sell Stock pattern.
Problems asked:
- Best Time to Buy and Sell Stock (LeetCode 121)
- Find the maximum profit by buying and selling a stock once.
- Discussed the optimized single-pass approach using the minimum price so far and maximum profit.
- Best Time to Buy and Sell Stock II (LeetCode 122)
- Find the maximum profit when multiple buy-and-sell transactions are allowed.
- Discussed the greedy approach of accumulating profit whenever the price increases.
Both problems focused on array traversal, optimization, and problem-solving skills.
Verdict: Selected
Questions asked (2)
- 01
Best Time to Buy and Sell Stock
Data Structures & Algorithms · Easy
Open the problemFind the maximum profit by buying and selling a stock once.
- 02
Best Time to Buy and Sell Stock II
Data Structures & Algorithms · Medium
Open the problemFind the maximum profit when multiple buy-and-sell transactions are allowed.