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

Senior Software Engineer

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 summarise 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 date11 Feb 2015
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 Number

Moderate
25m average time
70% success
0/80
Asked in companies
PayPalGrowwD.E.Shaw

Ninja loves beautiful numbers and also has two integers, ‘L’ and ‘R’, denoting an interval [L, R].

Given the interval [L, R], Ninja wants you to find the number of Beautiful numbers in the interval.

A Beautiful Number is a number that:

Becomes 1 by repeatedly replacing the number with the sum of squares of its digits.

If the number does not become 1, then it’s not a Beautiful Number.

For example, given interval = [1, 3]

We see that 1 is a Beautiful Number but 2,3 are not. Hence the answer is 1.

Output the single integer, the sum of all Beautiful Numbers in the given range.

Example:
Input: ‘L’ = ‘1’ ,  'R' = ‘3’

Output: 1

As ‘1’ is the only Beautiful Number.

3 is not Beautiful as, 
3 -> 9
9 -> 81
81 -> 65
65 -> 61 … and so on
It can be shown that we cannot get 1. 
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: I figured out that the problem can be solved optimally with dynamic programming
Step 5: I implemented the bottom-up approach
Step 6: It was passing in all test cases after some basic debugging.

Try solving now
02
Round
Easy
Telephonic
Duration60 Minutes
Interview date2 Mar 2015
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 solved here as well - https://www.geeksforgeeks.org/merge-two-sorted-linked-lists/

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

This is an extension of a standard question which is solved here - https://www.geeksforgeeks.org/subset-sum-problem-dp-25/

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 date3 Mar 2015
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 mins
Interview date1 Apr 2015
Coding problem1

1. Basic HR questions

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 - 1
4 rounds | 6 problems
Interviewed by PayPal
4912 views
1 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by PayPal
1683 views
0 comments
0 upvotes
company logo
Senior Software Engineer
2 rounds | 3 problems
Interviewed by PayPal
0 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 4 problems
Interviewed by PayPal
6480 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Senior Software Engineer
1 rounds | 3 problems
Interviewed by Intuit
3024 views
1 comments
0 upvotes
company logo
Senior Software Engineer
5 rounds | 5 problems
Interviewed by PhonePe
2643 views
0 comments
0 upvotes
company logo
Senior Software Engineer
4 rounds | 4 problems
Interviewed by Walmart
7660 views
1 comments
0 upvotes