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

SDE - Intern

PayU
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Coming from a Computer Science background, my journey into tech has been fuelled by curiosity and dedication. My strong GPA reflects a solid foundation in analytical thinking and problem-solving. Through self-learning and structured courses, I deepened my understanding of core CS fundamentals and honed my coding skills. Competitive programming platforms helped me sharpen problem-solving abilities, while hands-on projects and internships provided real-world exposure. With consistent preparation, mentorship, and a passion for technology, I successfully cracked a job interview later — proving that determination and continuous learning are key to achieving one’s career aspirations.
Application story
I came across a LinkedIn post from a PayU HR, which included an email for job applications. I sent my resume, and after two days, I received a call from the HR to schedule my interview.
Why selected/rejected for the role?
I was eventually rejected because I didn’t have prior experience with Django, as the HR mentioned they needed someone who could immediately contribute to a team working extensively with the framework. Still, I viewed this as an opportunity to grow, so I proactively began exploring Django and familiarizing myself with its fundamentals.
Preparation
Duration: 4 months
Topics: Java, Python, OOPs, OS, DBMS, Dynamic Programming, Trees
Tip
Tip

Tip 1: Focus on understanding the basics of any topic before jumping to the advanced level.
Tip 2: Spend more time thinking about the approach to a problem before jumping to the solution.
Tip 3: Consistency is key.

Application process
Where: Linkedin
Eligibility: 7 CGPA & 2025 pass out, (Stipend: 40k per month)
Resume Tip
Resume tip

Tip 1: Make sure it's a one-pager with all the important things highlighted.
Tip 2: You should have in-depth knowledge of all the projects you have mentioned in your resume.

Interview rounds

01
Round
Easy
Video Call
Duration45 minutes
Interview date16 Sep 2025
Coding problem2

1. Alternate Character Extraction

Easy
0/40
Asked in company
PayU

You are given a string S which may contain one or more words separated by spaces. Your task is to transform this string based on a specific set of rules.


The transformation process is as follows:

Split: The input string S is first split into parts (words) based on spaces.

Rearrange: For each part, you will create a new string by first  taking all characters at even indices (0, 2, 4, ...) in the order they appear, and then appending all characters at odd indices (1, 3, 5, ...) in the order they appear.

Combine: The transformed parts are then joined back together with a single space between them to form the final output string.


Problem approach

Approach:
Take the input string.
Split the string if it contains multiple words (e.g., using split() function).
For each substring:
Extract characters at even indices (s[::2]).
Extract characters at odd indices (s[1::2]).
Combine both parts (either concatenate or interleave as required).
Join the results from all split parts to form the final output string.

Try solving now

2. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayMorgan StanleyUber

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Problem approach

Create left max array (maxl):
For each index, store the maximum height from the left up to that index.
Create right max array (maxr):
For each index, store the maximum height from the right up to that index.
For each index:
Water at index = min(maxl[i], maxr[i]) − height[i].
Sum all water values to get the total trapped water.

Try solving now
02
Round
Easy
Video Call
Duration45 minutes
Interview date22 Sep 2025
Coding problem2

1. First and Last Character Occurrence

Easy
0/40
Asked in company
PayU

You are given a string S and a target character C. Your task is to find the first and last index (0-based) at which the target character C appears in the string S.


There are two possible outcomes:

If the character C is found in the string S, you should report both the index of its first occurrence and the index of its last occurrence.

If the character C is not found in the string S at all, you should indicate this.


Try solving now

2. Allocate Books

Moderate
10m average time
90% success
0/80
Asked in companies
PayUIBMZS

Given an array ‘arr’ of integer numbers, ‘arr[i]’ represents the number of pages in the ‘i-th’ book.


There are ‘m’ number of students, and the task is to allocate all the books to the students.


Allocate books in such a way that:

1. Each student gets at least one book.
2. Each book should be allocated to only one student.
3. Book allocation should be in a contiguous manner.


You have to allocate the book to ‘m’ students such that the maximum number of pages assigned to a student is minimum.


If the allocation of books is not possible, return -1.


Example:
Input: ‘n’ = 4 ‘m’ = 2 
‘arr’ = [12, 34, 67, 90]

Output: 113

Explanation: All possible ways to allocate the ‘4’ books to '2' students are:

12 | 34, 67, 90 - the sum of all the pages of books allocated to student 1 is ‘12’, and student two is ‘34+ 67+ 90 = 191’, so the maximum is ‘max(12, 191)= 191’.

12, 34 | 67, 90 - the sum of all the pages of books allocated to student 1 is ‘12+ 34 = 46’, and student two is ‘67+ 90 = 157’, so the maximum is ‘max(46, 157)= 157’.

12, 34, 67 | 90 - the sum of all the pages of books allocated to student 1 is ‘12+ 34 +67 = 113’, and student two is ‘90’, so the maximum is ‘max(113, 90)= 113’.

We are getting the minimum in the last case.

Hence answer is ‘113’.
Problem approach

1) Check feasibility:
If k > n (students > books):
→ Return -1 (cannot give each student at least one book).
2) Define search space:
Low = max(arr)
(because one student must get the book with maximum pages)
High = sum(arr)
(one student takes all books)
We binary search on this range.
3) Binary search for the minimum possible maximum pages:
For a mid-value = possible max pages per student:
Check if allocation is possible:
Traverse the array
Accumulate pages for current student
If pages exceed mid → assign to next student
Count how many students are needed
If number of students required > k → mid is too small → search right half.
Else → mid is feasible → search left half.
4) Final answer: The minimum mid for which allocation is possible is the answer.

Try solving now

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 | 3 problems
Interviewed by PayU
1790 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by PayU
2230 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
company logo
Associate Software Engineer
4 rounds | 9 problems
Interviewed by PayU
1471 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