The Juspay interview process for freshers is an online coding test with three graph and tree problems, a two-part hackathon, a technical interview and an HR round. Hackathon Part A is the Tree of Space problem (lock, unlock and upgrade on an N-ary tree) on HackerEarth; Part B is a full day spent making that code thread-safe and faster and explaining it. The technical interview covers DSA, operating systems, DBMS, computer networks and OOP.
Juspay is a Bengaluru payments company, and the hackathon format is what sets its hiring apart: one problem, extended for concurrency, judged on working code. A 2025-batch campus SDE candidate reported a 27 LPA CTC.
Juspay interview process
- Online coding test90-180 min
- Aptitude or MCQ round (some drives)Varies
- Hackathon Part A~3 hours
- Elimination round (some drives)Varies
- Hackathon Part B8 hours to a full day
- Technical interview~1 hour
- HR round~20-30 min
| Round | Duration | What it tests |
|---|---|---|
| Online coding test | 90-180 min | Three graph and tree problems; more than half the test cases needed to pass in one report |
| Aptitude or MCQ round (some drives) | Varies | CS fundamentals, system design basics, math |
| Hackathon Part A | ~3 hours | Tree of Space on HackerEarth |
| Elimination round (some drives) | Varies | Review of Part A |
| Hackathon Part B | 8 hours to a full day | Thread safety, time complexity, explaining your code |
| Technical interview | ~1 hour | DSA, OS, DBMS, networks, OOP, projects |
| HR round | ~20-30 min | Background, interests, fit |
Juspay interview questions with answers
Q: Implement lock, unlock and upgrade for Tree of Space efficiently.
Store for each node its parent, a locked-by user id, and a count of locked descendants. lock checks that the node is unlocked, that its locked-descendant count is zero, and walks up the parents to check no ancestor is locked; on success it sets the owner and increments the count on every ancestor. That is O(height) per call instead of scanning the subtree. unlock checks the owner, clears it and decrements the ancestors’ counts. upgrade checks that no ancestor is locked and the count is positive, collects locked descendants with a DFS, verifies they all belong to the user, unlocks them and locks the node. Build a map from node name to node at input time so lookups are O(1).
Q: How do you make Tree of Space thread-safe?
A single global lock is correct but serializes every call. A finer design locks the path a call touches: acquire per-node mutexes from the root down to the target node in a fixed top-down order, which prevents deadlock because every thread acquires locks in the same order. Check and update the ancestor counts while holding those locks, then release bottom-up. Another approach is optimistic: read the path without locks, then use atomic compare-and-set on each node’s state and retry if anything changed. Explain the trade-off: path locking is simpler to prove correct, while compare-and-set scales better under low contention. Write a test that runs thousands of concurrent lock calls on overlapping subtrees and checks that no ancestor and descendant are ever locked together.
Q: Largest Sum Cycle in a graph where each node has at most one outgoing edge.
Because every node has at most one exit, each component contains at most one cycle. Walk from every unvisited node, recording the step number at which each node was reached during this walk. If you reach a node already seen in the current walk, you have found a cycle: sum the indices from that node around the loop. If you reach a node visited in an earlier walk, stop. Mark everything visited so the total work is O(N). Return the maximum cycle sum, or -1 if no cycle exists.
Q: Nearest Meeting Cell for two starting cells.
From each starting cell, follow the single outgoing edges and record the distance to every cell reached, stopping when you hit -1 or revisit a cell. Then for every cell reached from both starts, compute the sum of the two distances and return the cell with the smallest sum, breaking ties by the smallest index or as the problem states. Each walk is O(N), so the whole solution is O(N).
Q: Minimum characters to remove so a string becomes “Juspay”.
If the target must appear as a subsequence, check greedily whether “Juspay” is a subsequence of the input by scanning once with a pointer into the target; if it is, the answer is the input length minus six, otherwise it is impossible. If the question asks for a contiguous result, you need a substring equal to the target, so search for it and remove everything else. Clarify which version is meant and whether matching is case-sensitive before coding.
Q: What is a deadlock, and how do you prevent one?
A deadlock happens when threads wait on each other in a cycle and none can proceed. It needs four conditions together: mutual exclusion, hold and wait, no preemption and circular wait. The simplest prevention is to remove circular wait by always acquiring locks in a global order, which is exactly what makes top-down locking safe in Tree of Space. Other options are acquiring all locks at once, using tryLock with a timeout and backing off, or avoiding shared mutable state.
Q: Why would a payments company use Haskell?
Strong static types catch whole classes of bugs at compile time, such as passing an amount in the wrong currency if currencies are separate types. Pure functions make business logic easier to test and reason about, and immutable data avoids many concurrency bugs. Juspay’s open-source EulerHS framework for building web backends is written in Haskell. You do not need to know Haskell for campus interviews in the reports reviewed here, but this is a reasonable answer if an interviewer asks.
Juspay online test
The first round is an online test with three problems on graphs and trees. The 2024-batch internship drive used Otomeyt’s Rookie World platform with the Converging Maze set: Largest Sum Cycle, Maximum Weight Node and Nearest Meeting Cell. A 2025-batch SDE candidate had the same three in 90 minutes and solved all three. A 2024 Product Engineer candidate had 180 minutes for three tree and graph problems and needed to clear more than half the test cases. A 2025 report shows the same structure on the D2C platform in 90 minutes.
Juspay coding questions: Converging Maze
All three problems use the same input: a maze of N cells where each cell has at most one exit, given as an array edge where edge[i] is the cell reachable from i, or -1.
- Maximum Weight Node: The weight of a cell is the sum of indices of cells that point to it. Return the cell with the highest weight.
- Nearest Meeting Cell: Given two cells, find a cell reachable from both that minimizes the sum of distances.
- Largest Sum Cycle: Return the largest sum of cell indices over any cycle, or -1 if there is none.
Juspay hackathon: Tree of Space
Part A is a single problem, usually solved on HackerEarth in about three hours. You are given an N-ary tree and must implement:
- lock(node, user): succeeds only if the node is not locked and no ancestor or descendant is locked.
- unlock(node, user): succeeds only if the node is locked by the same user.
- upgrade(node, user): locks a node by taking over all locked descendants, if every locked descendant belongs to the same user and no ancestor is locked.
Part B uses the same code. The 2025-batch report describes an eight-hour session in which candidates reduced time complexity, made the code thread-safe and explained the approach, with a mentor available. A 2024 Product Engineer candidate described it as a full-day hackathon on Slack.
Juspay technical interview
Candidates who clear the hackathon get a technical interview of about an hour. Reported topics:
- DSA: graphs, arrays, binary search, BFS and DFS
- Operating systems: threads, locks, deadlock, scheduling
- DBMS: transactions, normalization, indexing
- Computer networks and socket programming
- OOP concepts and your projects, sometimes with a demo
- A design question such as how Gmail works on the backend
Juspay interview questions by round
| Round | Reported questions |
|---|---|
| Online test | Largest Sum Cycle, Maximum Weight Node, Nearest Meeting Cell; binary search on an array; minimum characters to remove to turn a string into “Juspay”; a tree problem |
| Hackathon Part A | Tree of Space: lock, unlock, upgrade on an N-ary tree |
| Hackathon Part B | Make Tree of Space thread-safe; reduce its time complexity; explain the design |
| Learnathon (some drives) | Three Postman API testing challenges; test-case design for automated refunds |
| Technical interview | Graphs, arrays, binary search, BFS and DFS, OS, socket programming, DBMS, networks, OOP; how Gmail works on the backend; project walkthrough |
| HR | Self-introduction, hobbies and travel, why Juspay |
Who does well in Juspay interviews
Good fit: You are fast on graph problems where each node has one outgoing edge, you can turn a working single-threaded solution into a thread-safe one, and you can explain locks and deadlock without notes. Stamina matters: Part B can run a full day.
Harder path: You prepared only for short DSA rounds. Juspay judges one problem over many hours, so code structure, concurrency and explanation count as much as the first correct answer.
Juspay CTC and roles in India
A 2025-batch campus SDE candidate reported a 27 LPA CTC. Juspay does not publish fresher packages or a CGPA cutoff, so confirm the split between fixed pay, variable pay and any stock on the offer letter. Campus drives have hired for SDE, Product Engineer, React developer and intern roles, and some drives route candidates to a track based on the first test.
Juspay’s tech stack and why it matters for the interview
Juspay processes over 300 million transactions a day according to its own site, which is why the hackathon tests thread safety rather than only correctness. Its GitHub organization shows Rust for the open-source Hyperswitch payments platform, ReScript for the Hyperswitch web SDK and dashboard, and Haskell for the EulerHS backend framework. Campus interviews in the reports reviewed here do not require any of these languages; you can use C++, Java or Python.
Juspay in the US
Juspay lists a San Francisco hub alongside Bangalore, Sao Paulo, Dublin and Singapore, but its careers page showed no global openings at the time of writing, and no US interview reports were found. US candidates should expect the same emphasis on concurrency and payments reliability.
A three-week Juspay prep plan
- Week 1: Solve Largest Sum Cycle, Maximum Weight Node and Nearest Meeting Cell from scratch, then 10 more graph problems on functional graphs, cycles and BFS.
- Week 2: Implement Tree of Space in your main language with O(height) lock and unlock. Then make it thread-safe two ways (path locking and compare-and-set) and write a concurrent test.
- Week 3: OS (threads, mutexes, deadlock, scheduling), DBMS (transactions, isolation, indexing), networks (TCP, HTTP, sockets) and OOP. Prepare a project demo and a two-minute self-introduction.
Frequently asked questions about Juspay interviews
What is the Juspay interview process?
For campus SDE hiring: an online coding test with three tree and graph problems, a hackathon Part A on HackerEarth built around the Tree of Space problem, a Part B that extends the same code to be thread-safe and faster over a full day, a technical interview on DSA, OS, DBMS, networks and OOP, and an HR round. Some drives add an aptitude or MCQ round and an elimination round between the hackathon parts.
What are Juspay coding questions like?
Graph and tree problems of medium to hard level. The online test commonly uses the Converging Maze set: Largest Sum Cycle, Maximum Weight Node and Nearest Meeting Cell, in 90 minutes on platforms such as Otomeyt or D2C. Other reported questions include a binary search problem, the minimum characters to remove to turn a string into Juspay, and a tree problem.
What is the Juspay Tree of Space problem?
The hackathon Part A problem: implement lock, unlock and upgrade operations on an N-ary tree, where a node can be locked only if none of its ancestors or descendants is locked. Candidates solve it on HackerEarth in about three hours, then in Part B make the solution thread-safe and reduce its time complexity while explaining the approach.
What happens in the Juspay hackathon Part B?
A long session, reported as eight hours or a full day on Slack, where candidates optimize their Part A code, make it thread-safe for concurrent lock and unlock calls, and explain their reasoning to evaluators. A 2025-batch candidate said mentors were available but asking too many questions could hurt the evaluation.
What is the Juspay CTC for freshers?
A 2025-batch campus SDE candidate reported a CTC of 27 LPA. Juspay does not publish campus packages, so treat this as one reported figure and confirm the fixed and variable split on the offer letter.
Does Juspay ask Haskell or functional programming in interviews?
Not in the campus interview reports reviewed here, which cover DSA, concurrency and CS fundamentals. Juspay does use Haskell: its open-source EulerHS framework for web backends is written in Haskell, and one recruitment guide says some backend teams may ask about functional programming. Knowing why pure functions and immutability help with concurrency is useful background.
What does the Juspay technical interview cover?
DSA plus CS fundamentals. Reports list computer networks, operating systems, DBMS, OOP and problem-solving; a 2025 candidate had graphs, arrays, binary search, BFS and DFS, OS and socket programming; and a candidate was asked how Gmail works on the backend.
Where is Juspay based and where does it hire?
Juspay is headquartered in Bengaluru, India, and lists hubs in Bangalore, Sao Paulo, San Francisco, Dublin and Singapore. Campus and fresher hiring is for Bengaluru, and some interviews have been held at other Karnataka locations such as Mysore.
How long does the Juspay hiring process take?
Reports range from about a day for compressed campus drives to several months, because the online test, hackathon parts and interviews are often spread over different dates. One 2025-batch candidate got the hackathon invite on the same day as an HR meeting about it.
Is there a non-SDE track at Juspay campus hiring?
Yes. Some drives assign candidates to SDE or React developer tracks based on the first test, and one 2025 report describes a Learnathon with Postman API testing challenges and test-case design for automated refunds instead of the thread-safety hackathon.
Sources
- Juspay: careers
- Juspay: about
- GitHub: Juspay organization
- GitHub: EulerHS
- GeeksforGeeks: Juspay on-campus interview experience for batch 2025
- GeeksforGeeks: Juspay Product Engineer on-campus 2024
- GeeksforGeeks: Juspay internship on-campus 2024
- GeeksforGeeks: Juspay internship interview experience (Learnathon)
- GeeksforGeeks: JUSPAY recruitment process
- GeeksforGeeks: JusPay interview experience for SDE
- Aptitude, elimination round, technical round topics and timelines: Glassdoor Juspay interview reviews from 2025 and 2026