Razorpay interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Razorpay
upvote
share-icon
3 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Journey
My journey has been full of ups and downs. I started with the basics, slowly building my foundation and confidence through consistent effort and practice. There were times when things didn’t go my way. I faced rejection from 10–12 companies, and it was quite disheartening to see most of my friends already placed while I was still waiting for my turn. But I didn’t give up. I kept learning from every rejection, improving step by step, and maintaining faith that my hard work would eventually pay off. Finally, I got selected as an SDE Intern at Razorpay, and that moment made all the struggles worth it. This journey taught me that patience and persistence are just as important as skill. If you stay consistent and believe in yourself, your opportunity will come just at the right time.
Application story
I applied for the Razorpay internship through my college’s on-campus placement drive. The entire process was well-structured and smooth. After submitting my application through the campus portal, shortlisted candidates were invited for the online assessment followed by interviews. The coordinators and company representatives were very supportive throughout the process, ensuring everything went seamlessly from application to the final selection.
Why selected/rejected for the role?
I believe I was selected because I was able to perform well in all stages of the process. In the online assessment, I solved 2 out of 3 medium-level coding questions, which helped me get shortlisted for interviews. During the first technical round, I successfully solved both DSA questions, and in the second round, I confidently answered all the technical and resume-based questions. I made sure to stay calm, communicate my thought process clearly, and approach each problem systematically — which I think helped me stand out.
Preparation
Duration: 12 months
Topics: Data Structures, Algorithms, OOPS, Dynamic Programming, Problem Solving, System Design, SQL
Tip
Tip

Tip 1: Stay consistent with your preparation and practice coding regularly on online platforms.
Tip 2: Revise core concepts of Data Structures and OOPS thoroughly before interviews.
Tip 3: Don’t get discouraged by rejections — learn from each experience and keep improving.

Application process
Where: Campus
Eligibility: Above 8.5 CGPA, (Stipend: 50k per month)
Resume Tip
Resume tip

Tip 1: Highlight your key projects and clearly mention your role and impact in each.
Tip 2: Keep your resume concise and ensure every point is backed by real experience or skill.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date24 Jan 2025
Coding problem3

The assessment had a 1-day window to complete and was conducted on the HackerRank platform. The timing was flexible, allowing candidates to attempt it anytime within the given window. The environment was smooth and stable, with no technical issues during the test. The platform’s interface was user-friendly, and the problem statements were clearly described.

1. Special Digit Numbers

Hard
0/120
Asked in company
Razorpay

You are given three integers: d, e, and f. Your task is to count the number of special d-digit numbers that satisfy a specific condition.


A d-digit number is considered special based on the digits allowed at each position (1-indexed, from left to right):

  If a digit's position k is a prime number (2, 3, 5, 7, ...), the digit at that position must be one of {2, 3, 5, 7}.

  If a digit's position k is not a prime number (1, 4, 6, 8, ...), the digit at that position must be one of {0, 1, 4, 6, 8, 9}.


Additionally, a valid d-digit number cannot have a leading zero.

The condition to satisfy is that when the special d-digit number is taken modulo e, the remainder must be exactly f.

You need to return the total count of such numbers, with the final answer taken modulo 10^9 + 7.


Problem approach

Tip 1: Carefully handle leading zeros — they can invalidate early DP transitions.
Tip 2: Precompute primes efficiently (using Sieve of Eratosthenes) to optimize checks.
Tip 3: Think in terms of states and transitions for DP; every digit position adds a new state dimension.

Try solving now

2. Server Information Propagation

Moderate
0/80
Asked in company
Razorpay

You are given n servers, indexed from 0 to n-1. Each server i has a specific sendTime[i], which dictates how it can transmit information. In a single step, a server at index i can send information to:


The server at index i + sendTime[i], if this index is within the bounds [0, n-1].

The server at index i - sendTime[i], if this index is within the bounds [0, n-1].


Initially, only the last server (at index n-1) possesses a piece of information. This information then spreads through the network in steps.


Your task is to determine the minimum number of steps required for each server to receive the information. If a server is unreachable from the starting server, its minimum number of steps is considered -1.


Problem approach

Tip 1: Visualize the problem as a graph — it simplifies the logic drastically.
Tip 2: Use a queue for BFS and maintain a visited array to avoid re-processing nodes.
Tip 3: Always check boundary conditions (i + x and i - x must stay within range).

Try solving now

3. Minimize Maximum Adjacent Distance

Moderate
0/80
Asked in company
Razorpay

You are given the positions of N cubes on a 1D line, represented by an array X. You are allowed to remove at most K cubes from this line.


Your goal is to find a configuration of remaining cubes that minimizes the maximum distance between any two adjacent cubes.


For example, if the remaining cubes are at positions [1, 5, 12], the adjacent distances are (5-1)=4 and (12-5)=7. The maximum adjacent distance is 7.


You need to find the minimum possible value for this maximum adjacent distance.


Problem approach

Tip 1: Sorting is crucial — adjacency only makes sense in sorted order.
Tip 2: Binary search over the answer space (not array values) — a powerful DSA concept.
Tip 3: Test with edge cases (like K=0 or all cubes equally spaced) to validate logic.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date30 Jan 2025
Coding problem2

For the interview round, the interviewer was very polite and encouraging. He created a comfortable environment, gave hints when required, and focused more on understanding my thought process rather than just the final answer. Overall, the experience was positive and well-organized.

1. Maximum Frequency Number

Easy
10m average time
90% success
0/40
Asked in companies
PayPalHSBCWalmart

Ninja is given an array of integers that contain numbers in random order. He needs to write a program to find and return the number which occurs the maximum times in the given input. He needs your help to solve this problem.

If two or more elements contend for the maximum frequency, return the element which occurs in the array first i.e. whose index is lowest.

For example,

For 'arr' = [ 1, 2, 3, 1, 2]. you need to return 1.
Problem approach

Tip 1: Always store both frequency and first occurrence index to handle tie-breaking easily.
Tip 2: For such problems, focus on how to efficiently track additional information (like first index) while counting.
Tip 3: Dry run your approach on a small example to ensure tie conditions are correctly handled.

Try solving now

2. Group Anagrams

Moderate
30m average time
70% success
0/80
Asked in companies
AmazonAtlassianThales

You have been given an array/list of strings 'inputStr'. You are supposed to return the strings as groups of anagrams such that strings belonging to a particular group are anagrams of one another.

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase. We can generalize this in string processing by saying that an anagram of a string is another string with the same quantity of each character in it, in any order.

Note:
The order in which the groups and members of the groups are printed does not matter.
For example:
inputStr = {"eat","tea","tan","ate","nat","bat"}
Here {“tea”, “ate”,” eat”} and {“nat”, “tan”} are grouped as anagrams. Since there is no such string in “inputStr” which can be an anagram of “bat”, thus, “bat” will be the only member in its group.
Problem approach

Tip 1: Sorting each string is the simplest way to form a unique key for anagrams.
Tip 2: Alternatively, for optimization, you can use a character frequency vector as the key instead of sorting.
Tip 3: Make sure to understand the trade-off between readability and optimization — sorted-key approach is easier and efficient enough for interviews.

Try solving now
03
Round
Medium
Video Call
Duration15 minutes
Interview date11 Feb 2025
Coding problem3

The second interview was a technical discussion round, conducted during normal working hours. The environment was calm and professional, and the interviewer made me feel very comfortable throughout the conversation. It was a purely conceptual round focusing on core CS fundamentals like OOPS, DBMS, and Operating Systems.

1. Web Fundamentals

Explain the four primary HTTP methods — GET, POST, PUT, and DELETE — and their purposes in REST APIs. (Learn)

Problem approach

Tip 1: Remember the CRUD analogy — Create (POST), Read (GET), Update (PUT), Delete (DELETE).
Tip 2: Be clear about idempotency — GET and PUT are idempotent, while POST is not.
Tip 3: Give small examples (e.g., “GET /users” retrieves data, “POST /users” adds a new one) for better clarity.

2. Operating System

  • List and explain the four necessary conditions for deadlock — Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait. (Learn)
  • Explain what virtual memory is and how it helps manage limited physical memory efficiently. (Learn)
  • Differentiate between paging and segmentation. (Learn)
Problem approach

Tip 1: Use a simple real-life example (like two processes holding different resources) to explain clearly.
Tip 2: Mention that paging and segmentation are techniques used to implement virtual memory.
Tip 3: Paging divides memory into fixed-size blocks, segmentation divides it into logical variable-size units.

3. DBMS

Explain what indexing is, its types (primary, secondary, clustered, non-clustered), and how it improves query performance. (Learn)

Problem approach

Tip 1: Describe indexing as a “shortcut” that reduces the number of disk accesses for data retrieval.
Tip 2: Mention the trade-off — faster reads but slower writes due to index maintenance.
Tip 3: Give a quick SQL example like CREATE INDEX idx_name ON table(column); to show practical understanding.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 5 problems
Interviewed by Razorpay
3039 views
0 comments
0 upvotes
SDE - Intern
1 rounds | 3 problems
Interviewed by Razorpay
1331 views
0 comments
0 upvotes
SDE - Intern
3 rounds | 5 problems
Interviewed by Razorpay
2716 views
0 comments
0 upvotes
SDE - Intern
2 rounds | 5 problems
Interviewed by Razorpay
967 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10141 views
2 comments
0 upvotes