Talentd
FleetCode
Make and follow sheets.Sign in

Razorpay Interview Questions (12)

Coding problems reported from Razorpay interviews and online assessments.

Start practising
A private sheet of Razorpay's most asked problems with a two-week finish date.
Questions12
Easy2
Medium9
Hard1
TitleSolutionAcceptDifficultyAsked
146. LRU CacheVideo
Solution48.2%Medium
394. Decode StringVideo
Solution63.0%Medium
Solution52.6%Medium
62. Unique PathsVideo
Solution67.3%Medium
189. Rotate ArrayVideo
Solution45.3%Medium
Showing 1–9 of 9

More about Razorpay interviews

Razorpay is one of India's fastest-growing fintech companies, and its engineering team focuses heavily on building scalable, reliable payment infrastructure. Because their products handle millions of transactions, Razorpay places strong emphasis on candidates who can write efficient code, reason about edge cases, and design systems that scale.

The Razorpay coding interview typically evaluates core data structures and algorithms along with practical problem-solving skills. Candidates are expected to be comfortable with common DSA patterns and write clean, production-ready code during interviews.

Based on real interview experiences, Razorpay interview questions frequently test:

  • Arrays and hashing for transaction-like data processing
  • Sliding window and two pointers for optimization problems
  • Trees and graphs for hierarchical or dependency modeling
  • Dynamic programming for optimization scenarios
  • Stacks and queues for stream-style data handling

The difficulty distribution usually includes a mix of medium and hard problems, with interviewers focusing more on how you approach the problem rather than just arriving at the final solution.

On this page, we’ve compiled 13 real Razorpay coding interview questions asked in previous interviews. Each problem is organized by difficulty and includes solutions in multiple languages to help you practice effectively.

FleetCode helps you prepare the same way top candidates do: by practicing company-specific questions, understanding common patterns, and building the confidence needed to perform well in Razorpay's technical interview rounds.

Interview tips

Preparing for a Razorpay coding interview requires a strong grasp of data structures, clean coding practices, and the ability to reason about performance. Since Razorpay builds high-scale financial infrastructure, interviewers care deeply about efficiency, reliability, and edge-case handling.

Typical Razorpay Interview Process

  • Online coding assessment:
  • Technical interview rounds (2–3 rounds): Live coding with a focus on data structures and algorithms. Expect medium to hard problems.
  • System design or machine coding round: For experienced roles, candidates may be asked to design scalable services or implement a simplified system.
  • Hiring manager or culture round: Focuses on past projects, problem-solving mindset, and collaboration.

Most Common DSA Topics Asked at Razorpay

  • Hash maps and arrays for transaction-like data manipulation
  • Sliding window and two pointers for performance optimization
  • Trees and graph traversal problems
  • Stack-based problems and monotonic stacks
  • Dynamic programming for optimization challenges

Preparation Strategy

  • Focus on solving medium-level problems quickly and cleanly. Razorpay interviewers often test implementation quality.
  • Practice explaining your thought process while coding.
  • Optimize brute-force solutions step by step to reach optimal complexity.
  • Review time and space complexity for every solution.

Common Mistakes to Avoid

  • Jumping straight into coding without clarifying constraints
  • Ignoring edge cases such as empty inputs or duplicates
  • Writing code that works but has poor complexity
  • Not testing your solution with example inputs

Recommended Preparation Timeline

Most candidates preparing for Razorpay spend around 6–8 weeks practicing DSA.

Frequently asked questions

What DSA topics does Razorpay ask most?

Razorpay frequently asks questions on arrays, hash maps, sliding window, stacks, trees, and graph traversal. Dynamic programming and greedy optimization problems also appear in some interview rounds. Many questions involve practical data manipulation similar to transaction processing.

How hard are Razorpay coding interviews?

Razorpay coding interviews are generally considered medium to hard in difficulty. Most questions focus on strong fundamentals in data structures and algorithms, with an emphasis on writing efficient and clean code. Candidates are also expected to explain their approach clearly and handle edge cases.

Does Razorpay ask system design questions?

Yes, Razorpay may include system design or machine coding rounds for mid-level and senior engineering roles. These rounds evaluate your ability to design scalable systems, APIs, and services that handle high transaction volumes. Freshers and entry-level candidates usually focus more on DSA rounds.

What is the Razorpay interview process like?

The Razorpay interview process usually starts with an online coding assessment followed by two or three technical rounds. These rounds focus on live coding, algorithm design, and sometimes system design for experienced roles. The final round often evaluates culture fit and past project experience.

How many LeetCode problems should I solve for Razorpay?

Focus more on medium-level problems and company-specific patterns rather than only chasing high problem counts. Practicing Razorpay-style questions can significantly improve your chances.

How long should I prepare for a Razorpay coding interview?

Most candidates prepare for about 6–8 weeks if they already know basic data structures. This time is usually enough to revise core topics, practice medium-level problems, and solve company-specific interview questions. Consistent daily practice is more important than long study sessions.