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

SDE - Intern

Paytm
upvote
share-icon
3 rounds | 10 Coding problems

Interview preparation journey

expand-icon
Journey
My journey to cracking the Paytm interview has been all about consistent growth and curiosity. I started by strengthening my DSA concepts and solving problems online while simultaneously building projects like ExpenseMate etc. I focused on improving with every interview, learning from rejections, and staying confident in my approach. Eventually, all the hard work paid off when I got selected as an SDE Intern at Paytm.
Application story
I applied for the Paytm SDE Intern role through my college’s on-campus recruitment drive. The process began with an online coding assessment that tested problem-solving and programming fundamentals. After clearing it, I went through two rounds of technical interviews focusing on DSA, OOPS, and project-based discussions.
Why selected/rejected for the role?
I was selected because of my strong problem-solving foundation, clear understanding of core concepts, and practical exposure through hands-on projects like ExpenseMate. I was able to explain my thought process effectively during interviews and connect my project experience with real-world problem solving. Overall, a balanced mix of technical skills, confidence, and clarity helped me stand out in the selection process.
Preparation
Duration: 8 months
Topics: DSA, OOPS, OS, DBMS, Software Engineering, JavaScript
Tip
Tip

Tip 1: Solve DSA problems consistently and focus on understanding patterns, not memorizing them.
Tip 2: Build at least one real-world project to demonstrate practical skills and problem-solving ability.

Application process
Where: Campus
Eligibility: 7 CGPA, (Stipend: 25k per month)
Resume Tip
Resume tip

Tip 1: Keep your resume concise, truthful, and highlight measurable impact in each project or experience.
Tip 2: Include a few strong, well explained projects that demonstrate your technical depth and creativity.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date20 Sep 2024
Coding problem2

The test was conducted in the evening and started on time. The environment was smooth and well-monitored, with no technical glitches. The round mainly focused on evaluating coding ability, analytical thinking.

1. Count All Subarrays With Given Sum

Moderate
15m average time
85% success
0/80
Asked in companies
SAP LabsIBMHSBC

You are given an integer array 'arr' of size 'N' and an integer 'K'.

Your task is to find the total number of subarrays of the given array whose sum of elements is equal to k.

A subarray is defined as a contiguous block of elements in the array.

Example:
Input: ‘N’ = 4, ‘arr’ = [3, 1, 2, 4], 'K' = 6

Output: 2

Explanation: The subarrays that sum up to '6' are: [3, 1, 2], and [2, 4].
Problem approach

1) I first thought of checking all subarrays using two loops, but that was too slow (O(N²)).
2) Then I used a better way with prefix sum and HashMap.
3) I kept a running sum of elements. For every new sum, I checked if (sum - K) already appeared before — that means a subarray ending here has sum K.
4) Stored counts of each prefix sum in a map to handle multiple cases.
5)This made the code run in O(N) time.

Try solving now

2. Valid Parentheses

Easy
10m average time
80% success
0/40
Asked in companies
OracleAmerican ExpressPayPal

You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .


Return true if the given string 'S' is balanced, else return false.


For example:
'S' = "{}()".

There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Problem approach

1) I used a stack to keep track of opening brackets.
2) For every character
>If it was an opening bracket, I pushed it to the stack.
>If it was a closing bracket, I checked if the top of the stack had the matching opening one.
3) If not matching, it’s invalid; otherwise, I popped it.
4) In the end, if the stack was empty, the string was valid.
5) The solution worked in O(N) time.

Try solving now
02
Round
Medium
Video Call
Duration45 minutes
Interview date4 Oct 2024
Coding problem3

It was a google meet interview. The interview was conducted at 10:45 AM. It started on time and went smoothly. The environment was calm and comfortable, with no technical issues. The session was one-on-one and conducted in a focused yet relaxed manner. The interviewer asked me to solve two coding questions online, allowing me to write, run, and explain my code in real time. There was a single interviewer, who was polite and professional. They observed my problem-solving approach closely, gave hints when needed, and ensured the discussion stayed interactive and stress free.

1. Merge Two Sorted Linked Lists

Moderate
15m average time
80% success
0/80
Asked in companies
CIS - Cyber InfrastructureAmazonApple

You are given two sorted linked lists. You have to merge them to produce a combined sorted linked list. You need to return the head of the final linked list.

Note:

The given linked lists may or may not be null.

For example:

If the first list is: 1 -> 4 -> 5 -> NULL and the second list is: 2 -> 3 -> 5 -> NULL

The final list would be: 1 -> 2 -> 3 -> 4 -> 5 -> 5 -> NULL
Problem approach

Create a dummy node dummy and a pointer tail pointing to dummy.
Use two pointers p1 = head1 and p2 = head2.
While both p1 and p2 are not null:
Compare p1->val and p2->val.
Append the smaller node to tail->next and advance that pointer (p1 or p2).
Move tail = tail->next.
After the loop, attach the non-empty remainder: if p1 not null then tail->next = p1 else tail->next = p2.
Return dummy->next as the head of the merged list.

Try solving now

2. Count vowels, consonants, and spaces

Easy
10m average time
90% success
0/40
Asked in companies
SamsungGoldman SachsCapegemini Consulting India Private Limited

Given a string, write a program to count the number of vowels, consonants, and spaces in that string.

EXAMPLE :
Input: ‘N’= 25, ‘s’ =”Take u forward is Awesome”
Output: 10 11 4
Problem approach

Initialize count = 0 and a set vowels = {'a','e','i','o','u'}.
Iterate each character ch in S.
Convert ch to lowercase for case-insensitive check.
If ch is in vowels, count += 1.
After iteration return count.

Try solving now

3. DBMS

Asked about the difference between delete, drop and truncate. (Learn)

Problem approach

Delete command removes specific rows from a table using a WHERE clause, can be rolled back.
Truncate command deletes all rows from a table instantly; cannot be rolled back in most databases.
Drop command Completely removes the table structure and data from the database.

03
Round
Medium
Video Call
Duration45 minutes
Interview date4 Oct 2024
Coding problem5

Interview 2: Last interview: The interview was conducted on the same day as the previous round, around 3:15 PM. It started on time and went smoothly without any delays. This was the final interview round, mainly focused on overall understanding. There was a single interviewer, who was very polite and encouraging. He made the conversation feel natural, asked thoughtful follow-up questions, and appreciated clear explanations. Overall, it was a positive and interactive session.

1. Binary Array Sorting

Easy
20m average time
85% success
0/40
Asked in companies
OptumAthenahealthPolicyBazaar.com

A binary array is an array consisting of only 0s and 1s.

You are given a binary array "arr" of size ‘N’. Your task is to sort the given array and return this array after sorting.

Problem approach

I first thought of using any sorting algorithm like bubble sort, but that would take O(n²).
Then I realized we can solve this in O(n) by counting the number of 0s and 1s.
Count total 0s in the array fill that many 0s from the start and remaining 1s afterward.
Another optimal approach is to use the two-pointer method:
Keep left = 0 and right = n-1.
Move left forward until it finds 1, and right backward until it finds 0.
Swap them and continue until left >= right.

Try solving now

2. First Unique Character in a String

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftIBMLivekeeping (An IndiaMART Company)

Given a string ‘STR’ consisting of lower case English letters, the task is to find the first non-repeating character in the string and return it. If it doesn’t exist, return ‘#’.

For example:

For the input string 'abcab', the first non-repeating character is ‘c’. As depicted the character ‘a’ repeats at index 3 and character ‘b’ repeats at index 4. Hence we return the character ‘c’ present at index 2.
Problem approach

I first thought of checking every character using two loops (O(n²)), but that’s inefficient.
I optimized it using a HashMap (or array of size 26) to count the frequency of each character.
After counting, I iterated over the string again and returned the first character with count = 1.
If no such character found, return “-1”.

Try solving now

3. OOPS

Asked about a real-life example of Abstraction in Object-Oriented Programming. (Learn)

Problem approach

I explained that Abstraction means hiding complex details and showing only the necessary information to the user. I gave the example of Paytm, where the user only sees a simple interface to send or receive money, while all the backend processes like API calls, authentication, and transaction handling are hidden.

4. Operating System

  • What is a Critical Section in Operating Systems? (Learn)
  • What is a Deadlock, and how can it be prevented? (Learn)
Problem approach

Understand that the Critical Section is the part of code where shared resources are accessed, and mutual exclusion must be ensured to prevent race conditions. A Deadlock occurs when two or more processes wait indefinitely for resources held by each other. Revise deadlock prevention, avoidance, and detection methods like the Banker’s Algorithm.

5. Computer Networks

Problem approach

Revise these topics from Computer Networks especially the chapters on Error Detection/Correction and Network Security.

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
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Paytm
297 views
0 comments
0 upvotes
company logo
Software Engineer Intern
3 rounds | 6 problems
Interviewed by Paytm
418 views
0 comments
0 upvotes
company logo
SWE Intern
3 rounds | 5 problems
Interviewed by Paytm
241 views
0 comments
0 upvotes
company logo
Business Analyst
2 rounds | 8 problems
Interviewed by Paytm
182 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