Juspay Interview Prep (SDE-1 / Product Engineer)

Juspay runs the most distinctive round of any company on this site. After an assessment and an MCQ paper comes a two-part hackathon: you implement a locking scheme over an M-ary tree on your own, then interviewers open that exact file and spend a long session extending it with you. The second part is where offers are decided, and it is almost entirely an interrogation of code you wrote a day earlier.

The loop is also a marathon. On campus the assessment, the paper and the hackathon often land on a single day, and candidates report interview slots running past midnight. Plan your energy, not just your preparation.


Interview Process

Stage Duration Focus
Online Assessment 1-3 hrs 3 DSA problems, or one implementation-heavy problem
MCQ Paper 60 min 16 questions, core CS plus maths and physics, no negative marking
Hackathon Part A 2-3 hrs Design and implement. This is the Tree of Space round
Hackathon Part B Long window Interviewers extend your Part A code live
Technical / Systems 90 min OS, networks, LLD, your projects
Cultural Round 30-45 min Motivation, role fit, long-term plans

Part B is the round that decides it. Multiple reports describe the same pattern: your Part A solution is opened, you explain every data-structure choice, derive the complexity, enumerate the edge cases, and then extend it under supervision. Candidates whose Part A passed the tests with a brute-force subtree scan report being pushed hard on exactly that.

The window is long. Reports give 11am to 7pm and 10am to 11pm. Treat it as a working day with interviewers in the room rather than an interview slot.

Off-campus and experienced candidates report a compressed version: a hosted screen, then a panel working through an algorithmic problem and an LLD problem on a shared editor. Role titles vary more than the process does.


What Juspay Actually Tests

Juspay has a small reported question pool — 18 tagged problems (2 Easy, 11 Medium, 5 Hard). That is too few to break down by percentage, but it is useful information on its own: a narrow pool means the specific problems below carry real weight, and your odds of drawing one you have already solved are much better than at a company with a two-thousand-problem list.

Work through the whole list rather than sampling it, and lean on the process and design sections on this page for the rounds the question data cannot tell you about.


System Design (HLD) Problems Asked at Juspay

# Problem Difficulty Link
1 Payment System (Switch and Retries) Advanced Read →
2 Digital Wallet Advanced Read →
3 Rules Engine (Routing Rules) Advanced Read →
4 Rate Limiter Beginner Read →
5 Message Queue Intermediate Read →
6 Distributed Cache Advanced Read →
7 Unique ID Generator (Transaction IDs) Intermediate Read →
8 Metrics and Monitoring Intermediate Read →

LLD / Machine Coding Problems Asked at Juspay

The hackathon is the machine coding round here, and it is unusual in being one problem carried across two sessions. The practice that transfers best is anything with a tree plus mutable state plus a thread-safety requirement bolted on at the end.

# Problem Difficulty Link
1 File System (Tree With Mutable State) Intermediate Read →
2 Payment Wallet Intermediate Read →
3 Queue Management Intermediate Read →
4 Rate Limiter Beginner Read →
5 Task Scheduler Advanced Read →
6 Multilevel Cache Intermediate Read →

DSA Problems Asked at Juspay

18 problems across 8 pattern groups. Each group is allocated in proportion to its real share of Juspay’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 5 on the list.

# Problem Pattern Difficulty Link
1 Node With Highest Edge Score Implementation Medium LeetCode →
2 Toggle Light Bulbs Implementation Easy LeetCode →
3 Set Matrix Zeroes Matrix + Hash Table Medium Solve →
4 Shortest Path in a Weighted Tree Implementation Hard LeetCode →
5 Two Sum Hash Table + Array Easy Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 3 on the list.

# Problem Pattern Difficulty Link
6 Find Closest Node to Given Two Nodes Graph + DFS Medium LeetCode →
7 Longest Cycle in a Graph Kosaraju’s Algorithm + Tarjan’s SCC Algorithm Hard Solve →
8 Largest Color Value in a Directed Graph DAG + Memoization Hard LeetCode →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 2 on the list.

# Problem Pattern Difficulty Link
9 Operations on Tree Design + Tree Medium LeetCode →
10 Sliding Window Maximum Range Query + Monotonic Queue Hard Solve →

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 2 on the list.

# Problem Pattern Difficulty Link
11 Longest Subsequence With Decreasing Adjacent Difference DP Medium LeetCode →
12 Maximum Product Subarray DP Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 2 on the list.

# Problem Pattern Difficulty Link
13 Asteroid Collision Stack Medium Solve →
14 Maximum Score From Removing Substrings Stack + Greedy Medium LeetCode →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 2 on the list.

# Problem Pattern Difficulty Link
15 Gas Station Greedy Medium Solve →
16 Merge Intervals Quicksort Medium Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. One on the list.

# Problem Pattern Difficulty Link
17 Minimum Number of Operations to Make Array Continuous Sliding Window + Binary Search Hard LeetCode →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. One on the list.

# Problem Pattern Difficulty Link
18 Longest Substring Without Repeating Characters Sliding Window Medium Solve →

Tree of Space: The Hackathon Round in Full

This problem has been the hackathon round since at least 2021 and is now entirely public, so there is no excuse for meeting it cold.

You are given a world map as a generic M-ary tree of N uniquely named nodes, fully balanced so every node has either zero or exactly m children. The classic example is World above Asia and Africa, with China and India under Asia and SouthAfrica and Egypt under Africa. You process an array of queries of the form operation nodeName userId, where 1 is lock, 2 is unlock and 3 is upgrade, and each returns true or false.

Operation Succeeds only when
lock(X, uid) X is unlocked, no ancestor of X is locked, and no descendant of X is locked by anyone
unlock(X, uid) X is currently locked and was locked by the same uid
upgradeLock(X, uid) X is unlocked, X has at least one locked descendant, every locked descendant belongs to uid, and no ancestor of X is locked. On success those descendant locks are released and X is locked instead

A worked example from a candidate report: with N=7 and M=2, the queries 1 China 9, 1 India 9, 3 Asia 9, 2 India 9, 2 Asia 9 produce true, true, true, false, true.

The complexity target is the whole point. Scanning the subtree to check for descendant locks is O(N) and is explicitly not what is wanted. Reported targets are lock and unlock in O(log_m N), and upgradeLock in O(number of locked nodes times log_m N). The intended design:

  1. Resolve names to nodes through a hash map, and precompute parent pointers so you can walk upwards.
  2. Store on every node its own lock state, the uid that holds it, and a count of locked descendants.
  3. To lock, walk the ancestor path checking nobody above you is locked, read your own descendant counter in O(1) to check nobody below you is, then increment the counter on every ancestor.
  4. To unlock, reverse the counter updates along the same path.
  5. To upgrade, collect the locked descendants belonging to the uid, release them, then lock X.

That counter is the difference between an answer that passes and an answer that survives Part B.

Part B is a supervised extension of your own file. Reported asks: explain the approach end to end, justify each data structure, derive time and space complexity, enumerate edge cases, propose optimisations, and answer how it scales to millions of nodes. The extension that comes up again and again is concurrency: make the tree thread-safe, then add multi-threading to lock with granular per-node locking along the ancestor path rather than one lock over the whole tree. Failures should return a meaningful error instead of crashing.


Behavioural Round

# Question
1 Why payments? What interests you about the problem?
2 Walk me through a system you built where correctness mattered more than speed.
3 Tell me about a bug you found only in production.
4 Tell me about something you built that you later decided to rewrite.
5 How do you reason about code you did not write?
6 What do you do when you disagree with a technical decision that has already shipped?
7 Where do you want your work to be in three years?

Juspay publishes no named list of corporate values, so there is nothing to map rehearsed answers onto. The cultural round is reported as a genuine conversation about motivation and fit. The technical signal they care about is already covered by Part B.


Tips for Juspay Interviews

  1. Do not learn Haskell to pass the interview. Haskell runs the transaction path, PureScript and their own Presto framework run app flows, and Rust runs Hyperswitch, but reported interviews are language-agnostic and candidates pass in C++, Java and Python. Even roles advertised as functional-programming posts report the same loop.
  2. Solve Tree of Space at the target complexity, not just correctly. The naive version scans the subtree and is O(N). The intended shape keeps a locked-descendant count on every node so lock and unlock only walk the ancestor path. Getting the tests green with a traversal is the single most reported way to struggle in Part B.
  3. Write Part A as if you will defend every line, because you will. Name things properly, keep the lock logic in one place, and leave yourself comments. Part B opens your file, and reports include being asked to dry-run your own submission on a fresh test case.
  4. Prepare the concurrency theory properly. The signature Part B extension is making the tree thread-safe with per-node locking along the ancestor path rather than one global lock. Around it sit deadlock, and the differences between multithreading, parallelism, multitasking, multiprocessing and multiprogramming.
  5. Expect trees, graphs and hashing in the assessment. Reported difficulty is medium to hard, weighted towards those three plus graph problems with a dynamic programming layer. A competitive programming background is reported to shortcut parts of the loop.
  6. Treat it as a one-day event. On campus the first three rounds commonly run back to back, and late-night interview slots are reported. Do your systems and LLD revision before the day starts, because there will be no gap to do it in.

Other Company Prep


Juspay publishes no official loop description. The rounds above reflect commonly reported candidate experience across campus and off-campus routes and vary by role and year. The Tree of Space statement and complexity targets are reconstructed from public candidate writeups and published solutions, not from Juspay. Scale figures quoted elsewhere on this page are company-published. Confirm your round list with your recruiter.