Nagarro’s fresher process is unusually coding-heavy for an IT-services firm - two separate coding-focused written rounds, one often done on paper, before the technical interview even starts.
Nagarro interview process
- Written Test60-90 min
- Coding Round45-60 min
- Technical Interview30-45 min
- HR Interview20-30 min
| Round | Duration | What they test |
|---|---|---|
| Written Test | 60-90 min | Aptitude, CS/domain MCQs, 3 coding problems |
| Coding Round | 45-60 min | 3-4 coding problems, often pen-and-paper |
| Technical Interview | 30-45 min | Code optimization, DS/algorithms/SQL |
| HR Interview | 20-30 min | Fit, offer discussion |
Nagarro interview questions with answers
Q: Reverse a linked list - what is the iterative approach and its complexity?
Keep three pointers: prev (initially null), curr (initially head), and next. In each iteration store next = curr.next, point curr.next back to prev, then advance prev = curr and curr = next. When curr becomes null, prev is the new head. This runs in O(n) time and O(1) extra space, which is why interviewers prefer it over the recursive version that costs O(n) stack space.
Q: How do you find the second largest element in an array in a single pass?
Track two variables, largest and secondLargest, both initialized to negative infinity. For each element: if it is greater than largest, set secondLargest = largest and largest = element; else if it is greater than secondLargest and not equal to largest, set secondLargest = element. One pass gives O(n) time and O(1) space. Sorting also works but costs O(n log n), so mention the single-pass version first and handle the edge case where all elements are identical.
Q: Write a SQL query to find the second highest salary from an Employee table.
A portable version is SELECT MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee). It returns NULL rather than erroring when every salary is identical. On MySQL 8 or PostgreSQL you can also use SELECT salary FROM (SELECT salary, DENSE_RANK() OVER (ORDER BY salary DESC) rnk FROM Employee) t WHERE rnk = 2. Use DENSE_RANK rather than ROW_NUMBER so tied top salaries do not shift the answer.
Q: What is the difference between an INNER JOIN and a LEFT JOIN?
INNER JOIN returns only rows where the join condition matches in both tables, so unmatched rows on either side disappear. LEFT JOIN returns every row from the left table and fills the right table’s columns with NULL where there is no match, so the result is at least as large as the left table. A common Nagarro follow-up is finding rows with no match: LEFT JOIN the two tables and add WHERE right_table.id IS NULL, which is the anti-join pattern.
Q: Explain deadlock and the four Coffman conditions.
A deadlock is a state where a set of processes are each blocked waiting on a resource held by another process in the set, so none can proceed. It requires all four Coffman conditions simultaneously: mutual exclusion (a resource is non-shareable), hold and wait (a process holds one resource while requesting another), no preemption (resources cannot be forcibly taken), and circular wait (a cycle exists in the wait-for graph). Breaking any single condition prevents deadlock - for example, imposing a global ordering on resource acquisition breaks circular wait.
Q: What is the time complexity of quicksort, and when does it degrade?
Average and best case are O(n log n) because a good pivot splits the array roughly in half at each of log n levels, with O(n) partitioning work per level. Worst case is O(n squared), which happens when the pivot is consistently the smallest or largest element - classically when you pick the first element as pivot on already-sorted input. Randomized pivot selection or median-of-three makes that worst case vanishingly unlikely; quicksort uses O(log n) stack space and is not stable, unlike merge sort’s O(n log n) guarantee with O(n) extra space.
Q: How would you detect a loop in a linked list without extra space?
Use Floyd’s cycle-detection algorithm: advance a slow pointer one node at a time and a fast pointer two nodes at a time. If they ever meet, a cycle exists; if fast reaches null, the list is acyclic. To find the start of the loop, reset one pointer to the head and move both one step at a time - they meet at the loop’s entry node. Time is O(n) and space is O(1), versus the hash-set approach that also runs in O(n) time but costs O(n) space.
Q: How do you check whether two strings are anagrams of each other?
If the lengths differ, return false immediately. Otherwise use a frequency count: for lowercase ASCII, a fixed 26-integer array, incrementing for the first string and decrementing for the second, then verifying every counter is zero. That is O(n) time and O(1) space since the array size is constant. Sorting both strings and comparing also works and is easier to write on paper, but costs O(n log n) - a good trade-off to state out loud in Nagarro’s pen-and-paper round.
Q: Two Sum - walk from brute force to optimal.
Brute force checks every pair in O(n²). Better: hash each value to its index while scanning once; for each element x, if (target − x) is already in the map, return the pair. That is O(n) time and O(n) space. Nagarro Trainee interviews often ask you to narrate this progression aloud even if you already coded the optimal version in the OA.
Q: Implement a stack using two queues (or queue using two stacks).
Stack using queues: use one queue; for push, enqueue then rotate size−1 elements so the newest sits at the front - pop is then O(1) from the front. Queue using stacks: enqueue pushes onto stack A; dequeue pops from stack B, refilling B from A when B is empty. Both are classic Nagarro implementation prompts when interviewers test DS beyond theory.
Q: What is the difference between StringBuffer and StringBuilder in Java?
Both are mutable char sequences. StringBuffer is synchronized and thread-safe; StringBuilder is not synchronized and is faster for single-threaded code. Off-campus Nagarro technical rounds cite this alongside static/final, encapsulation, and occasional output-tracing snippets - know which class you would pick in a servlet vs a local loop.
Q: Delete and Earn / maximize points with adjacent constraint - approach?
Build a frequency map of values, then run house-robber DP on the value line: at each value v, either take v × freq[v] plus best up to v−2, or skip and keep best up to v−1. Sorting unique values first keeps the DP order clear. This pattern appears in Nagarro SDE-CSD OAs alongside graph and string problems.
Nagarro interview questions by track
The technical interview follows your track. These are questions candidates have reported on GeeksforGeeks.
| Track | Reported questions and topics |
|---|---|
| Software Engineer Trainee / SD (campus) | A string problem solved naively, then recursively, with time and space complexity; reverse a linked list and detect a loop (approach only); output of short C++ OOP programs. 2021-2025 reports add C++ vs Java, virtual functions, department-wise salary in SQL and a Pascal triangle program. |
| Assistant System Engineer | Optimize the code you wrote in the coding round, spiral matrix traversal, rotate a matrix by 90 degrees, all permutations of a string, the bug life cycle, puzzles and SQL. |
| Commando Software Developer (CSD) | Harder DSA in the coding round, including DP patterns such as Delete and Earn and house robber, then live coding from naive to optimal in the interview. |
| Associate Software Engineer | Tell me about yourself, your final-year project and the technologies you used, plus DSA and OOP from the coding rounds. |
Asked across every track: complexity of every solution you give, one project module you owned end to end, why Nagarro and whether you will relocate.
Nagarro online assessment: quick answers
| Question | Answer |
|---|---|
| How many questions and how long? | Reports conflict. A 2025 on-campus pattern on PrepInsta lists a 60-minute aptitude and technical objective test followed by a 150-minute programming test. A 2021 GfG off-campus trainee report had 40 MCQs (25 aptitude, 15 technical) in 60 minutes, then 3 coding problems in 90 minutes. Late-2025 Glassdoor reports describe an aptitude and CS-fundamentals test, then 3 medium coding problems in about 75 minutes. |
| Does it have negative marking? | Not published, and reports conflict. A 2021 GfG off-campus report says wrong MCQ answers carried negative marking; PrepInsta’s 2025 on-campus page does not mention any. Check the instruction screen. |
| Is there a sectional cutoff? | Not published, but every round is an elimination round and the coding section carries the most weight. |
| How much is the cutoff? | Not published. PrepInsta’s 2025 drive listing asks for 60 percent in the current degree (or expected by the final semester) with no backlogs, for B.Tech CSE, ECE or IT, MCA and M.Tech CSE; some older guides apply 60 percent to Class 10 and 12 as well. |
| Which platform is it on? | Mettl in most reports, from a 2021 GfG off-campus drive to late-2025 Gurgaon campus drives on Glassdoor, with interviews on MS Teams. GfG’s recruitment guide says the second coding round can be pen-and-paper or an online HackerRank test. |
| Is there coding? | Yes, more than most IT-services tests: 2-5 problems online, then often a second coding round of 3-4 problems. Late-2025 reports describe 3 medium problems on DP, trees and graphs. PrepInsta says you can choose your own language. |
| What do SD and CSD pay? | PrepInsta’s 2025 on-campus report lists ₹4.5 LPA for Software Developer (SD) and ₹6 LPA for Commando Software Developer (CSD), after a 6-8 month training period with a stipend. |
Written Test
Combines standard aptitude (quant, logical, verbal) with technical MCQs spanning OS, data structures, algorithms, C, Java, SQL, and networking, plus 3 coding problems in the same sitting.
Off-campus and recent campus reports also describe a single combined OA: ~50 objective questions (reasoning and quant) plus five coding problems (three easy-medium, two hard) on platforms such as Mettl - or a 150-minute sitting with a long aptitude block and two medium-hard DP problems. Always follow the invite email; Nagarro does not publish one permanent paper.
Common questions
- Quantitative and logical aptitude - the standard campus-screen mix; skip discipline matters when sections are separately timed
- MCQs on OS, DS, algorithms, Java (
static,final, collections), DBMS/SQL, and networking fundamentals - 2-3 coding problems in-campus (arrays, strings, Two Sum-style hashing) or up to 5 off-campus (graphs, trees, light DP)
- SQL query MCQs: second-highest salary, duplicate rows, join types
Coding Round
A second, distinct written round - often literally pen-and-paper - with 3-4 more coding problems. Nagarro is explicit that this round prioritizes algorithmic thinking and correct logic over clean, compiler-ready syntax, since you’re not typing it into an IDE.
Some drives merge aptitude and coding in one login (e.g. one hour aptitude, then 2.5 hours coding with sections on arrays, knapsack-style DP, and strings). Others run a standalone 60-minute three-problem coding test (array leaders, counting ways, longest substring without repeating characters in public GFG reports).
Common questions
- Solve 3-4 coding problems by hand, showing your logic clearly even without running the code
- Array, string, recursion, and basic DP (Delete and Earn / house-robber patterns show up in SDE-CSD write-ups)
- Problems that reward a clear, step-by-step approach over a “clever” one-liner
- Explain your algorithm’s time complexity without running it
Technical Interview
Rather than starting fresh, this round typically revisits the code you wrote in the Coding Round and asks you to walk through, defend, and optimize it - alongside further DS/algorithms/SQL questions.
Expect 15-60 minutes depending on track: Trainee panels often stay on linked lists (reverse, cycle, delete from end), frequency counting, Quick Sort, string recursion with stated complexity, and C++/Java OOP output snippets. Full SDE loops add live coding (Two Sum from naive to optimal), stack/queue implementations, and resume-aligned follow-ups (e.g. JavaScript promises if you claimed MERN).
Common questions
- Optimize the code you wrote in the earlier coding round - what would you change and why?
- Explain the time/space complexity of your written solution
- Additional DS/algorithms questions building on what you’ve already shown
- SQL queries involving joins or aggregate functions
- Project walkthrough - one module you owned end-to-end
Round-by-round accounts are on the Nagarro interview experience page.
HR Interview
A closing round on fit, motivation, and offer discussion.
Common questions
- Tell me about yourself and why Nagarro
- The technical round often asks you to optimize code you wrote earlier - tell me about a time you improved a solution you’d already built
- Nagarro describes its culture as non-hierarchical, with engineers taking direct ownership - how do you feel about that kind of autonomy?
- Are you open to relocating to Gurugram, Jaipur, Bengaluru, or Hyderabad?
Sample answer frameworks for each of these are on the Nagarro HR interview questions page.
Why two coding rounds before the interview
Most IT-services companies run a single OA and reserve coding assessment for that one sitting. Nagarro instead splits it across the Written Test and a dedicated Coding Round, with the second one commonly done on paper - a deliberate signal that Nagarro cares about your ability to reason through a problem correctly under low-tooling conditions, not just produce working code in an IDE with autocomplete. If you’re used to prepping purely on LeetCode with a compiler running, practice writing out full solutions by hand as part of your prep.
How to prepare for Nagarro interviews
- Loop map: Written Test; Coding Round; Technical Interview; HR Interview. Confirm timings from the drive mail.
- Technical depth: Drill the Q&A section until answers are spoken, not read. Know every resume project cold.
- Experiences: Study round-wise notes on the interview experience page.
- HR: Three STAR stories + a specific “Why Nagarro?” on the HR page.
Who usually fits and who struggles
Good fit: You can finish an easy-medium array and a string problem in 90 minutes with tests in your head, you can draw a tree traversal on paper, and you will relocate to at least one India hub. You debug out loud.
Harder path: You only grind contest hards and skip reasoning timers; you cannot explain OOP without an IDE; you treat HR as “tell me about yourself” only; you refuse all four hubs.
A practical Nagarro prep plan
Use this as a default four-week loop before a Nagarro drive. Adjust to your invite timeline.
- Week 1: Language fluency: rewrite 10 old solutions in one language until you stop hunting syntax. Open the Nagarro previous-year sets on this site and mark which sections ate your time. Write the timing on a sticky note. That number is more useful than a 200-problem LeetCode streak you never timed.
- Week 2: Most Nagarro drives fail people on the first timed paper or OA. Do three timed sits this week. After each one, log every miss in a two-column note: topic and why (slow, wrong formula, bad edge case, panic). The next sit should only add problems from that log.
- Week 3: Technical interviews at Nagarro usually want a clean project story, one or two CS fundamentals, and (if the process has it) a behavioral or values round. Write STAR stories on paper, not in your head. Practice “Why Nagarro?” with one concrete product, lab, or business line - not a slogan.
- Week 4: Sleep, id photocopies, and a dry run of the oa platform if the invite names one. If you still have energy, redo only the questions you failed in week 2.
10-day crash version: Days 1-4 timed DSA, days 5-7 resume projects + CS fundamentals, days 8-9 mock interviews out loud, day 10 HR STAR stories on the HR page.
What interviewers score at Nagarro
Campus reports emphasize a tough reasoning-plus-coding OA, then a technical that rewards thinking out loud on DSA/OOP/DBMS and live logic, plus HR on communication and hub flexibility. Scoring favors visible reasoning over silent correct guesses.
Red flags in the Nagarro loop
- Skipping reasoning practice because you only grind contest hards
- Silent whiteboard coding with no complexity talk
- One-minute topic panic with zero structure
- Refusing all India hubs named in the drive
- Treating HR as “tell me about yourself” only
Compensation notes
Candidate-reported fresher/early-career packages for Nagarro often cite ₹6-10 LPA.
Frequently asked questions about Nagarro interviews
Does the Nagarro online test have negative marking?
Not published, and reports conflict. A 2021 GeeksforGeeks off-campus report says wrong MCQ answers carried negative marking, while PrepInsta’s 2025 on-campus page does not mention any. Every round is an elimination round, so check the instruction screen of your own test.
How many coding questions are in the Nagarro test, and which language can I use?
Usually 2-5 coding problems in the online test, followed in many drives by a second coding round of 3-4 problems, sometimes on paper. You can choose your own programming language.
What is the Nagarro interview process for freshers?
Nagarro typically runs 4 rounds for freshers hired as Associate/Assistant System Engineers: 1. Written Test - aptitude (quant, logical, verbal) plus technical MCQs (OS, DS, algorithms, C, Java, SQL, networking) and 3 coding problems. 2. Coding Round - a second, often pen-and-paper, written round with 3-4 coding problems focused purely on problem-solving. 3. Technical Interview - discusses and asks you to optimize the code from the coding round, plus DS/algorithms/SQL questions. 4. HR Interview - fit and offer discussion.
What questions are asked in Nagarro interviews?
The written rounds mix aptitude with core CS MCQs (OS, DS, algorithms, SQL, networking) and coding problems. A distinctive part of Nagarro’s process is that the second coding round is often done on paper, and interviewers explicitly say they care about your algorithmic thinking and problem-solving approach, not clean pseudocode syntax. The technical interview usually revisits and asks you to optimize what you wrote in that round.
How many rounds are there in the Nagarro interview?
Most Nagarro drives run 4 rounds: a written test, a separate coding round, a technical interview, and an HR interview. The two coding-heavy rounds before the technical interview is the main thing that distinguishes Nagarro’s process from a typical single-OA pipeline.
Is Nagarro’s process similar to Coforge’s?
They’re often paired in prep guides since both are engineering-leaning IT services/product-engineering firms hiring from overlapping campus pools, and both weight coding more heavily than a mass-recruiter. But Nagarro leans more logic-and-coding-heavy overall - two separate coding-focused written rounds before the technical interview - whereas Coforge’s process opens with a distinct Communication Assessment gate that Nagarro doesn’t run. Prep quant/verbal enough to avoid easy losses either way, but prioritize logical reasoning and coding for Nagarro specifically.
How should I prepare for Nagarro interviews?
Practice writing correct, working code by hand (not just in an IDE), since Nagarro’s coding round is often pen-and-paper and prioritizes problem-solving logic over syntax polish. Revise core CS fundamentals (OS, DS, algorithms, SQL, networking) for the MCQ sections, and be ready to optimize your own code when asked in the technical interview.
Nagarro SD vs CSD
Software Developer (SD) and Commando Software Developer (CSD) are the two fresher roles in recent Nagarro campus drives. In the drive PrepInsta reports, both roles sat the same aptitude and programming tests; CSD is the higher-paid role, and the coding rounds are where candidates separate. PrepInsta’s 2025 on-campus report lists ₹4.5 LPA for SD with a ₹19,000 monthly training stipend, and ₹6 LPA for CSD with a ₹25,000 stipend, over a 6-8 month training period.
Older drives used titles such as Assistant System Engineer, Software Engineer Trainee and Associate Software Engineer for broadly the same entry roles. This page covers all of them; if you are aiming for CSD, put extra time into medium DP and graph problems.
Sources
For round-by-round stories, see the Nagarro interview experience page. For OA papers and coding drills, use Nagarro on placementpapers.app. OA quick answers and track-wise questions draw on PrepInsta’s Nagarro recruitment page (2025 on-campus drive), GeeksforGeeks’ Nagarro recruitment process guide, its Software Engineer Trainee, Associate Software Engineer and 2021 off-campus Trainee Technology interview experiences, and 2025-2026 Glassdoor campus reviews (read as search snippets).