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

SDE - 2

PayPal
upvote
share-icon
5 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Arrays, Hashmap, String, LinkedList, Stacks and queues, recursion, DP, Backtracking, graph
Tip
Tip

Tip 1 : If you are good with any programming Language(Java and C++ preferred but again its your choice) start with DSA directly. Learn the basic Arrays, Linked List, Stacks, Queues, Trees, Hashing, Graphs, Dynamic programming, Heaps, searching and sorting. (PS:-Courses and resources i will not mention as there are many materials available just choose the one you like and start preparing!!)

Tip 2 : Once you feel OK start practising problems try to solve by yourself, if not take hints, and at the end you can check solution if still unsolved.

Tip 3 : Try to connect with people on linkedin. Try to know the techstacks and try to get referrals. Keep on applying once feel ready 80% because you are never 100% ready for anything.

Application process
Where: Referral
Eligibility: 2 years of experience.
Resume Tip
Resume tip

Tip 1 : Keep your resume updated with all the tech stacks you worked on, your projects, your latest experience.
Tip 2 : The resume need to be short and crisp. it takes only a min. For HR to read your resume. and align it with job requirement.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date5 Aug 2021
Coding problem1

There will be 2 coding questions easy to medium based on DP and linkedlist.

1. Count Ways To Reach The N-th Stairs

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

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair.


Each time, you can climb either one step or two steps.


You are supposed to return the number of distinct ways you can climb from the 0th step to the Nth step.

Note:

Note: Since the number of ways can be very large, return the answer modulo 1000000007.
Example :
N=3

Example

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Problem approach

applied DP and solved the problem. you can find the issue on gfg or coding ninjas materials.

Try solving now
02
Round
Easy
Face to Face
Duration60 minutes
Interview date10 May 2022
Coding problem2

the questions will be be based on trees, linked list and stacks and queues, DP

1. Left View Of Binary Tree

Moderate
30m average time
60% success
0/80
Asked in companies
WalmartSalesforceDelhivery

You have been given a Binary Tree of 'n' nodes, where the nodes have integer values



Example :
If the input tree is as depicted in the picture: 

alt text

The Left View of the tree will be:  2 35 2 
Problem approach

i applied the brute force method.
Interviewer asked me to optimise the code without recursion.
i applied stack to solve the code.

Try solving now

2. Next Greater Element

Moderate
20m average time
90% success
0/80
Asked in companies
PayPalSamsungDunzo

You are given an array arr of length N. You have to return a list of integers containing the NGE(next greater element) of each element of the given array. The NGE for an element X is the first greater element on the right side of X in the array. Elements for which no greater element exists, consider the NGE as -1.

For Example :

If the given array is [1, 3, 2], then you need to return [3, -1, -1]. Because for 1, 3 is the next greater element, for 3 it does not have any greater number to its right, and similarly for 2.
Problem approach

I again solved using brute force method.
inteviewer asked me another approach.
so i solved is using the stack.

Try solving now
03
Round
Medium
Face to Face
Duration60 minutes
Interview date11 May 2022
Coding problem1

(DSA, work experience and personal projects)

1. Sort An Array of 0s, 1s and 2s

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

You have been given an array/list 'arr' consisting of 'n' elements.


Each element in the array is either 0, 1 or 2.


Sort this array/list in increasing order.


Do not make a new array/list. Make changes in the given array/list.


Example :
Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]

Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]

Explanation: The array is sorted in increasing order.
Problem approach

The question was based on sorting. dont give much time as they are going to ask further based on your resume and project. question is just to check the comfort.

Try solving now
04
Round
Medium
Face to Face
Duration60 minutes
Interview date13 May 2022
Coding problem1

It started in the afternoon after the lunch.

1. System Design Question

The questions will be based on low level system design and you will be given certain conditions for which you have to design a system.

Problem approach

The interviewer will closely observe your approach and will add the conditions as per the requirements if any changes required. you have to design system specifically and keep on asking questions to interviewer. Once design complete the interviewer will discuss the corner cases.

05
Round
Easy
HR Round
Duration25 minutes
Interview date17 May 2022
Coding problem1

Once all the rounds were cleared. I was told that i have 1 more round with manager.

1. Basic HR question

This round is behavioral and cultural based round and manager wants to know how can i handle the critical situation.

Problem approach

The manager asked that are the critical situations i have faced and how i have reacted. He also checked my resume and the projects that i have made. He checked the links that i have mentioned on my resume.

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by PayPal
1817 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by PayPal
1684 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 9 problems
Interviewed by PayPal
2814 views
0 comments
0 upvotes
company logo
SDE - 2
2 rounds | 4 problems
Interviewed by PayPal
1004 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29893 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6767 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5282 views
0 comments
0 upvotes