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

Software Engineer

PayPal
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithms, OOPS, OS, DBMS.
Tip
Tip

Tip 1 : Practice DSA from Leetcode, Geeksforgeeks, etc.
Tip 2 : Go through the subjects from Geeksforgeeks, Javatpoint, etc.
 

Application process
Where: Linkedin
Eligibility: 0-2 years experience
Resume Tip
Resume tip

Tip 1 : Keep it one-pager
Tip 2 : Try to cover maximum points by keeping each crisp. No need to go into details.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date21 Feb 2022
Coding problem1

1. Longest Common Subsequence

Moderate
39m average time
0/80
Asked in companies
PayPalSliceShareChat

Given two strings, 'S' and 'T' with lengths 'M' and 'N', find the length of the 'Longest Common Subsequence'.

For a string 'str'(per se) of length K, the subsequences are the strings containing characters in the same relative order as they are present in 'str,' but not necessarily contiguous. Subsequences contain all the strings of length varying from 0 to K.

Example :
Subsequences of string "abc" are:  ""(empty string), a, b, c, ab, bc, ac, abc.
Try solving now
02
Round
Medium
Face to Face
Duration50 minutes
Interview date4 Mar 2022
Coding problem2

1. Lexicographically smallest equivalent string

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

Ninja has two strings ‘s’ and ‘t’ of same length, he knows that both strings are equivalent strings which means s[i], t[i] will follow all rules of any equivalence relation that are:

  • Reflexive : s[i] = t[i]
  • Symmetric: s[i] = t[i] => t[i] = s[i]
  • Transitive: if s[i] = t[i] and t[i] = s[j] then s[i] = s[j]
  • Ninja wants your help to find the lexicographically smallest equivalent string of a given string ‘str’.

    Note:

    1. String ‘s’, ‘t’ and ‘str’ consist of only lowercase English letters from ‘a’ – ‘z’.
    2. String ‘s’ and ‘t’ are of same length.
    

    For example:

    Let s = “abc” , t = “xyz” and str = “xbc” then all strings that we can generate are “abc”, “abz”, “ayc”,”ayz”, “xbc”, “xbz”, “xyc”, “xyz” and smallest of all these is “abc”. 
    
    Problem approach

    The idea is to place the character just before the first character which is lexicographically greater than the character ch in the string. If no character in the string is found to be greater than ch, insert the character at the end.

    Try solving now

    2. 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

    Find the maximum path length from the current node to the leaf for both the left and right child. Add 1 to the sum of these lengths and find the maximum value among each node in the tree.

    Try solving now
    03
    Round
    Easy
    Face to Face
    Duration50 minutes
    Interview date5 Mar 2022
    Coding problem2

    1. System Design Question

    Asked the High-Level and Low-Level design for the project I was currently working on and asked few use cases where the design can be optimized.

    2. Operating System Questions

    Asked subjective questions:
    Difference between Mutex and Semaphore
    Write some code to explain the Critical Section problem
    Difference between Interface and Abstract classes
    Write code to explain Banker's Algorithm
    Asked few SQL queries for Joins, Update, Insert, Upsert, Delete, etc.

    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
    Software Engineer
    2 rounds | 3 problems
    Interviewed by PayPal
    3219 views
    0 comments
    0 upvotes
    company logo
    Software Engineer
    4 rounds | 7 problems
    Interviewed by PayPal
    1448 views
    0 comments
    0 upvotes
    company logo
    Software Engineer
    3 rounds | 6 problems
    Interviewed by PayPal
    2471 views
    0 comments
    0 upvotes
    company logo
    Software Engineer
    3 rounds | 4 problems
    Interviewed by PayPal
    6481 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    Software Engineer
    3 rounds | 7 problems
    Interviewed by Optum
    7977 views
    1 comments
    0 upvotes
    company logo
    Software Engineer
    5 rounds | 5 problems
    Interviewed by Microsoft
    10148 views
    1 comments
    0 upvotes
    company logo
    Software Engineer
    2 rounds | 4 problems
    Interviewed by Amazon
    4448 views
    1 comments
    0 upvotes