Kotak Mahindra Bank | SDE-2 | Interview Experience

Posted
4 Nov 2026
0 reads

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:

  1. 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.
  2. 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)

  1. 01

    Best Time to Buy and Sell Stock

    Data Structures & Algorithms · Easy

    Find the maximum profit by buying and selling a stock once.

    Open the problem
  2. 02

    Best Time to Buy and Sell Stock II

    Data Structures & Algorithms · Medium

    Find the maximum profit when multiple buy-and-sell transactions are allowed.

    Open the problem

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Kotak Mahindra Bank 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!