Groww SDE-2 Interview Experience
Summary
I interviewed for an SDE-2 position at Groww, completed a DSA round and a system design round, but was ultimately rejected without feedback.
Full Experience
Round 1: DSA
LeetCode 239: Sliding Window Maximum
Round 2: LLD / Machine Coding Design and implement an in-memory Wallet/Ledger system in Java.
Requirements:
- Multiple users, each with one wallet and a balance.
- Wallet supports credit() and debit().
- Debit fails if balance is insufficient.
- Support transactions: DEPOSIT, WITHDRAW, EXPENSE, RECEIPT.
- Each transaction has transactionId, idempotencyKey, userId, transactionType, and amount.
- Idempotency: If the same idempotencyKey is received again, don't process the transaction again. Return the original transaction.
Solved the LLD, but was rejected. No feedback was provided.
Interview Questions (2)
Sliding Window Maximum
Given an array of integers and a sliding window size k, return an array of the maximum values of each window as it moves from left to right across the array.
In-Memory Wallet/Ledger System Design
Design and implement an in-memory wallet/ledger system in Java with the following requirements:
- Multiple users, each has one wallet with a balance.
- Wallet supports
credit()anddebit()operations. debitfails if the balance is insufficient.- Support transaction types: DEPOSIT, WITHDRAW, EXPENSE, RECEIPT.
- Each transaction includes transactionId, idempotencyKey, userId, transactionType, and amount.
- Ensure idempotency: if the same idempotencyKey is received again, the transaction should not be processed again and the original transaction response should be returned.