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

SE-1

PayPal
upvote
share-icon
5 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, OOPS, DBMS, SQL, Puzzles.
Tip
Tip

Tip 1 : Practice DSA on any platform.
Tip 2 : Solve puzzles and have some idea on DBMS, OOPS, etc

Application process
Where: Referral
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Don't write solid content, make points
Tip 2 : Mention tech stack used in projects and experiences.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration40 minutes
Interview date20 Feb 2021
Coding problem2

It was on a coding platform with mandatory webCam during mid day. There was a choice to select time slot. The platform was working properly.

1. Missing Number

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

You are given an array/list ‘BINARYNUMS’ that consists of ‘N’ distinct strings which represent all integers from 0 to N in binary representation except one integer. This integer between 0 to ‘N’ whose binary representation is not present in list ‘BINARYNUMS’ is called ‘Missing Integer’.

Your task is to find the binary representation of that ‘Missing Integer’. You should return a string that represents this ‘Missing Integer’ in binary without leading zeros.

Note

1. There will be no leading zeros in any string in the list ‘BINARYNUMS’.

Example:

Consider N = 5 and the list ‘binaryNums’=  [“0”, “01”, “010”, “100”, “101”].  This list consists of the binary representation of numbers [0, 1, 2, 4, 5]. Clearly, the missing number is 3 and its binary representation will be “11”. So you should return string “11”.
Problem approach

Used XOR method to solve the problem.

Try solving now

2. Projectile Motion

Calculate the final height and duration of flight for a projectile, while the user has to provide values for displacement, initial velocity, and launch angle.

Problem approach

Used projectile motion formulas and concepts

02
Round
Easy
Video Call
Duration60 minutes
Interview date26 Feb 2021
Coding problem2

Round - 1

1. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
CultfitPayPalWalmart

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.


For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86.


Given the array [-5, -1, -8, -9], the maximum sum would be -1.


Follow up: Do this in O(N) time.

Problem approach

Used Kadane's Algorithm to find the solution

Try solving now

2. Puzzle Question

Suppose you have a 3 liter jug and a 5 liter jug (this could also be in gallons). The jugs have no measurement lines on them either. How could you measure exactly 4 liter using only those jugs and as much extra water as you need?

03
Round
Medium
Video Call
Duration60 minutes
Interview date5 Mar 2021
Coding problem3

Round - 2

1. Diameter Of Binary Tree

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

You are given a Binary Tree.


Return the length of the diameter of the tree.


Note :
The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.

The number of edges between two nodes represents the length of the path between them.
Example :
Input: Consider the given binary tree:

Example

Output: 6

Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.


Problem approach

By finding maximum height of left and right subtree.

Try solving now

2. DBMS Questions

SQL query for creating a database with some columns, introducing foreign keys, primary key, not null behaviour.
What are indexes, view?
What is virtual memory?

3. Conversion

Easy
20m average time
80% success
0/40
Asked in companies
SamsungQualcommPayPal

You are given two integers, ‘N’ and ‘M’. You are supposed to perform the following operation to convert ‘N’ to ‘M’.

In one operation, you can:

1. Choose any bit in ‘N’.

2. Flip the chosen bit, i.e., if the bit is ‘0’, make it ‘1’ and vice versa.

You are supposed to find the minimum number of operations needed to convert ‘N’ to ‘M’.

Problem approach

I did solved the question half way using stack, but couldn't solve completely.

Try solving now
04
Round
Medium
Telephonic
Duration60 minutes
Interview date18 Mar 2021
Coding problem0

Final Round - Virtual Interview
There were discussions on projects done in previous organisations.
Some discussion on Project.
Some managerial aspects.

05
Round
Easy
Video Call
Duration40 minutes
Interview date12 Apr 2021
Coding problem1

Final Round
Discussion on previous employer projects, tech stack used and interested to work on.
Companies requirements and tech stack.

1. Next Greater Element

Easy
10m average time
90% success
0/40
Asked in companies
MicrosoftAmazonDisney + Hotstar

You have been given an array/list ‘ARR’ consisting of ‘N’ positive integers. Your task is to return the Next Greater Element(NGE) for every element.

The Next Greater Element for an element ‘X’ is the first element on the right side of ‘X’ in the array 'ARR', which is greater than ‘X’. If no such element exists to the right of ‘X’, then return -1.

For example:
For the given array 'ARR' = [7, 12, 1, 20]

The next greater element for 7 is 12.
The next greater element for 12 is 20. 
The next greater element for 1 is 20. 
There is no greater element for 20 on the right side.

So, the output is [12, 20, 20, -1].
Problem approach

Using stack:
Push the first element to stack.
Pick rest of the elements one by one and follow the following steps in loop. 
Mark the current element as next.
If stack is not empty, compare top element of stack with next.
If next is greater than the top element, Pop element from stack. next is the next greater element for the popped element.
Keep popping from the stack while the popped element is smaller than next. next becomes the next greater element for all such popped elements.
Finally, push the next in the stack.
After the loop in step 2 is over, pop all the elements from the stack and print -1 as the next element for them.

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

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
SDE - 1
4 rounds | 6 problems
Interviewed by PayPal
2783 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 4 problems
Interviewed by PayPal
6481 views
0 comments
0 upvotes