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

SDE - 2

PayPal
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Data Structures, Algorithms, System Design, DBMS, Programming languages (JAVA advanced)
Tip
Tip

Tip 1 : Try to solve coding questions from top platforms and make sure you have a working code with all edge cases covered.
Tip 2 : Try to code on pen and paper as in the interview sometimes you are asked to code on paper and if there are a lot of cancellations it does not turn out well.
Tip 3 : Try to think out loud while solving design problems and even in DSA/problem-solving rounds, take interviews as more like collaborative problem solving and not one-sided monologues

Application process
Where: Other
Eligibility: no criteria
Resume Tip
Resume tip

Tip 1 : Try to include verbs like "developed", "designed" and summarize deliverables instead of "analyzed" or "worked on" which are more broad and vague.
Tip 2 : Try to not go too technical into details of projects and just specifically put down your part in the project with the business impact

Interview rounds

01
Round
Hard
Online Coding Test
Duration60 Minutes
Interview date20 Feb 2020
Coding problem2

1. Zig-Zag String

Easy
15m average time
85% success
0/40
Asked in companies
FacebookAppleOYO

You are given a string ‘STR’ of size ‘N’ and an integer ‘M’ (the number of rows in the zig-zag pattern of ‘STR’). Your task is to return the string formed by concatenating all ‘M’ rows when string ‘STR’ is written in a row-wise zig-zag pattern.

Example:
N = 12, M = 3 and STR = ‘CODINGNINJAS’

example

There are three rows (‘M = 3’) in the zig-zag pattern. Row one contains ‘CNN’, row two contains ‘OIGIJS’, and row three contains ‘DNA’. After concatenating the three rows, we get the string ‘CNNOIGIJSDNA’. So, the answer is ‘CNNOIGIJSDNA’.
Note:
1. The string ‘STR’ consists of capital letters only (i.e., characters from ‘A-Z’).
Problem approach

Step 1 : I tried to understand the question with a description and a few test cases
Step 2 : I tried to implement the brute force approach
Step 3 : The solution was passing for all test cases.

Try solving now

2. Beautiful Index

Easy
16m average time
91% success
0/40
Asked in companies
PayPalAppleFacebook

You are given an array ‘A’ of length ‘N’. You say an index ‘i’ is beautiful if the sum of the first ‘i - 1’ elements of the array ‘A’ equals the sum of the last ‘N - i’ elements of the array ‘A’, where ‘i’ is in 1-based indexing. Now you wonder which is the leftmost beautiful index.

Note: If you select the first index, then the sum of the prefix will be ‘0’, and if you select the last index, then the sum of the suffix will be ‘0’.

Note: You have to print the index in 1-based indexing.

For example:

Let’s say the array ‘A’ = [1, 3, 1, 5], then if we select index ‘2’, the sum of the prefix is ‘1’, and the sum of the suffix is 1 + 5 = 6. Since the sum is not the same, hence index ‘2’ is not a beautiful index.
Problem approach

Step 1: I tried to understand the question with a description and a few test cases.
Step 2: I tried to think of the brute force approach
Step 3: I checked back the constraints and figured out that brute force won't pass, I tried to optimize for the solution and thought of a few approaches
Step 4: It was passing in all test cases after some basic debugging.

Try solving now
02
Round
Medium
Telephonic
Duration60 minutes
Interview date5 Mar 2022
Coding problem2

It was during the afternoon.
Environment was good
The interviewer was very friendly and made me comfortable

1. Merge Two Sorted Linked Lists

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

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

This is a standard DSA question.

Try solving now

2. Subset Sum Equal To K

Moderate
30m average time
65% success
0/80
Asked in companies
AmazonDunzoDeutsche Bank

You are given an array/list ‘ARR’ of ‘N’ positive integers and an integer ‘K’. Your task is to check if there exists a subset in ‘ARR’ with a sum equal to ‘K’.

Note: Return true if there exists a subset with sum equal to ‘K’. Otherwise, return false.

For Example :
If ‘ARR’ is {1,2,3,4} and ‘K’ = 4, then there exists 2 subsets with sum = 4. These are {1,3} and {4}. Hence, return true.
Problem approach

Tip : Always start with brute force and then try to optimise, in this case optimal solution is DP, try to explain the states well in dp as coding it will hardly take 5 minutes. focus on clarity of the state in dp questions.

Try solving now
03
Round
Easy
Telephonic
Duration60 minutes
Interview date6 Mar 2022
Coding problem1

1. System Design Question

Design a chatbot

Problem approach

Tip 1 : When in vague problem statements like design questions set the expectation right in the beginning if the interviewer would like you to focus more on LLD or HLD
Tip 2 : When thinking of LLD always think of a neat design and try to avoid redundancy in storage and DB design
Tip 3 : Always try to optimize and think things like microservice architecture

04
Round
Easy
HR Round
Duration30 minutes
Interview date14 Mar 2022
Coding problem1

1.

1. Describe a project where you had to take the initiative?

2. At PayPal, we are proud of our ability to stay one step ahead of our competitors. How will you contribute to this trend?

3. Tell me what others would say about you.

4. Why do you want to join PayPal?

Problem approach

Tip 1 : The single tip for this round is be honest and if you really want to join the company it will be reflected.

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
1682 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 6 problems
Interviewed by PayPal
8870 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 9 problems
Interviewed by PayPal
2812 views
0 comments
0 upvotes
company logo
SDE - 2
2 rounds | 4 problems
Interviewed by PayPal
1002 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29891 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6765 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5280 views
0 comments
0 upvotes