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

SDE - 1

PayPal
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, OOPs, DBMS, SQL, Web Development.
Tip
Tip

Tip 1 : Do not rush into things. Learning takes time. Focus should be on the concepts and not just on leaving topics half-prepared. Devote 70% of both time and effort to DSA. I solved a total of around 500 questions on sites like GFG and Leetcode. Do not repeat similar questions just to increase the count of the number of questions

Tip 2 : Competitive Programming is a bonus and not a necessity, rather focus on core DSA based problems before trying CP. Do not pursue CP if you do not like it. Devote that extra time to core CS subjects and aptitude preparation.

Tip 3 : Projects play an important role too, do no ignore them. Try to get your hands dirty with a little bit of every field i.e., frontend, backend, and database.

Application process
Where: Campus
Eligibility: Above 7.5 CGPA in college
Resume Tip
Resume tip

Tip 1 : Try to make a single-page resume. Highlight skills, projects, and work experience more than CGPA. Ensure proper spacing and font to maintain professionalism.

Tip 2 : Does not lie on a resume. Everything written on your resume must be known by you in and out.

Interview rounds

01
Round
Easy
Video Call
Duration45 minutes
Interview date14 Feb 2022
Coding problem2

1. Rotting Oranges

Moderate
20m average time
78% success
0/80
Asked in companies
Samsung R&D InstituteSalesforceSamsung

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • Value 2 - representing a rotten orange.
  • Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.

    Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Note:
    1. The grid has 0-based indexing.
    2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
    
    Problem approach

    You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:
    Value 0 - representing an empty cell.
    Value 1 - representing a fresh orange.
    Value 2 - representing a rotten orange.
    Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.
    Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Try solving now

    2. Root to Leaf Path

    Moderate
    25m average time
    70% success
    0/80
    Asked in companies
    OracleUberAmazon

    Ninja is having a good time in solving new questions of Binary Trees from Code Studio. He is now encountered with a question having statement as "You are given a binary tree consisting of 'N' nodes numbered from 1 to 'N'. Your task is to print all the root to leaf paths of the binary tree".

    Ninja is stuck into this problem and could not able to find the logic. Help Ninja in solving the problem.

    Note :

    A leaf of a Binary Tree is the node which does not have a left child and a right child.
    
    For Example :
    Given a binary tree :
    

    alt txt

    All the root to leaf paths are :
    1 2 4
    1 2 5 
    1 3
    

    Note :

    1. Two nodes may have the same value associated with it.
    2. The root node will be fixed and will be provided in the function.
    3. Note that the nodes in a path will appear in a fixed order. For example, 1 2 3 is not the same as 2 1 3.
    4. Each path should be returned as a string consisting of nodes in order and separated by a space.
    5. The path length may be as small as ‘1’.
    
    Problem approach

    Ninja is having a good time in solving new questions of Binary Trees from Code Studio. He is now encountered with a question having statement as "You are given a binary tree consisting of 'N' nodes numbered from 1 to 'N'. Your task is to print all the root to leaf paths of the binary tree".

    Try solving now
    02
    Round
    Easy
    Video Call
    Duration45 minutes
    Interview date14 Feb 2022
    Coding problem2

    1. Valid Parentheses

    Easy
    10m average time
    80% success
    0/40
    Asked in companies
    AmazonIntuitOracle

    You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .


    Return true if the given string 'S' is balanced, else return false.


    For example:
    'S' = "{}()".
    
    There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
    So the 'S' is Balanced.
    
    Problem approach

    You are given a string consisting only of parentheses and letters. Your task is to remove the minimum number of invalid parentheses and return all possible unique, valid strings thus obtained.

    Try solving now

    2. Count Triplets

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

    You have been given an integer ‘X’ and a non-decreasing sorted doubly linked list with distinct nodes.

    Your task is to return the number of triplets in the list that sum up to the value ‘X’.

    Problem approach

    You have been given an integer ‘X’ and a non-decreasing sorted doubly linked list with distinct nodes.
    Your task is to return the number of triplets in the list that sum up to the value ‘X’.

    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 - 1
    4 rounds | 4 problems
    Interviewed by PayPal
    1833 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    2 rounds | 4 problems
    Interviewed by PayPal
    1709 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 6 problems
    Interviewed by PayPal
    2783 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - 1
    5 rounds | 12 problems
    Interviewed by Amazon
    115097 views
    24 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 5 problems
    Interviewed by Microsoft
    58238 views
    5 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 7 problems
    Interviewed by Amazon
    35147 views
    7 comments
    0 upvotes