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

Senior Software Engineer

PayPal
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 10Months
Topics: Data Structures Algorithms, OOPS, System Design, Html/css, Javascript, Node.js
Tip
Tip

Tip 1 : Practice Atleast 200-250 data structures Questions
Tip 2 : Create 2-3 descent kind of working projects and mention hosted links in the resume.
Tip 3 : Prepare common interview question from Google or github pages.

Application process
Where: Linkedin
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have 2-3 descent projects on your resume along with its hosted and link
Tip 2 : Avoid adding unnecessary and non-relevant content like achievements related to volunteering activities or non-technical activities.
Tip 3 : Content is more important in a resume rather than your styling to resume. so focus more on adding relevant content.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date10 Mar 2022
Coding problem1

Timing : Conducted at afternoon 2 PM
How was the environment? Google meet
How the interviewer was? (If was there any interview) He was very supportive and he was giving hints about data structures problems and even js questions.

1. K Largest Element

Moderate
10m average time
90% success
0/80
Asked in companies
AmazonWalmartPayPal

You are given an unsorted array containing ‘N’ integers. You need to find ‘K’ largest elements from the given array. Also, you need to return the elements in non-decreasing order.

Problem approach

import java.util.ArrayList;
import java.util.PriorityQueue;

public class Solution {

public static ArrayList kLargest(int input[], int k) {
int i=0;
PriorityQueue pq=new PriorityQueue<>();
ArrayList arr=new ArrayList<>();
while(i pq.add(input[i]);
i++;
}
while(i if(pq.peek() pq.poll();
pq.add(input[i]);
}
i++;
}
while(!pq.isEmpty()){
arr.add(pq.poll());
}
return arr;

}
}

Try solving now
02
Round
Medium
Video Call
Duration60minutes
Interview date16 Mar 2022
Coding problem2

Timing : It was at afternoon time : 3PM
How was the environment? Interview conducted on Google meet
Any other significant activity -  It was a techno-managerial round.
How the interviewer was? (If was there any interview) He was checking the technical knowledge as well as personality and also problem-solving skills.

1. Star Pattern

Easy
10m average time
85% success
0/40
Asked in companies
PayPalInfo Edge India (Naukri.com)LTIMindtree

Write a program to print the follwing pattern in javascript.
*******
** **
* * * *
* ** *
* * * *
** **
*******

Problem approach

Tip 1 : You can solve using partitioning this problem as the approach told in coding ninja lectures.
Tip 2 : You can solve using a 2D matrix problem here you have to just print all boundary elements and diagonal elements.
 

Try solving now

2. Javascript and Node JS

  • What is rest and what are the different methods in rest API? Explain each method.
  • List all the Javascript Data Types
  • What are the arrow functions?
  • What are closures and function hoisting?
  • What is the difference between package.json and package-lock.json?
  • What are ACID properties in MySQL?
  • List all differences between SQL and NoSQL
  • Why Node JS is single threaded
  • Types of express middleware
  • Explain the API authorization process step by step
  • What are JWT tokens
  • List the differences between Nodejs and JavaScript.
  • What is the difference between node & express
Problem approach

Difference between Nodejs and JavaScript : 
S.No Javascript NodeJS
1. 
Javascript is a programming language that is used for writing scripts on the website. NodeJS is a Javascript runtime environment.
2. Javascript can only be run in the browsers. We can run Javascript outside the browser with the help of NodeJS.
3. It is basically used on the client-side. It is mostly used on the server-side.
4. Javascript is capable enough to add HTML and play with the DOM. Nodejs does not have capability to add HTML tags.
5. Javascript can run in any browser engine as like JS core in safari V8 is the Javascript engine inside of node.js that parses and runs Javascript. 
and Spidermonkey in Firefox. 
6. Javascript is used in frontend development. Nodejs is used in server-side development.
7. Some of the javascript frameworks are RamdaJS, TypedJS, etc. Some of the Nodejs modules are Lodash, express etc. These modules are to be imported from npm. 



difference node & express

Feature Express.js Node.js
Level of features More features than Node.js. Fewer features.
Building Block It is built on Node.js. It is built on Google's V8 engine.


Middleware-
functions that have access 1.request object ( req ), 2.response object ( res ), 3.next middleware function
used to modify req and res objects for tasks like parsing request bodies, adding response headers

Types of express middleware
Application level middleware app.use
Router level middleware router.use
Built-in middleware express.static,express.json,express.urlencoded
Error handling middleware app.use(err,req,res,next)
Thirdparty middleware bodyparser,cookieparser

API Authorisation-
client ----> username & password ---> server side(generates jwt token)---->stores on client local store
client makes req-->token set into header Authorisation Bearer Token--->if token matched with stored then gets res else error
JWT- json web token
header- algorithm used and token type
payload- name user and other
Signature- header,payload,and secret

Atomicity 
By this, we mean that either the entire transaction takes place at once or doesn’t happen at all. 
There is no midway i.e. transactions do not occur partially. Each transaction is considered as one unit and either runs 
to completion or is not executed at all. It involves the following two operations. 
—Abort: If a transaction aborts, changes made to database are not visible. 
—Commit: If a transaction commits, changes made are visible. 
Atomicity is also known as the ‘All or nothing rule’. 

Consistency 
This means that integrity constraints must be maintained so that the database is consistent before and after the transaction. 
It refers to the correctness of a database. Referring to the example above, 
The total amount before and after the transaction must be maintained.

Isolation 
This property ensures that multiple transactions can occur concurrently without leading to the inconsistency of database state. 
Transactions occur independently without interference. Changes occurring in a particular transaction will not be visible to any 
other transaction until that particular change in that transaction is written to memory or has been committed. This property ensures that 
the execution of transactions concurrently will result in a state that is equivalent to a state achieved these were executed serially in some order. 

Durability: 
This property ensures that once the transaction has completed execution, the updates and modifications to the database are 
stored in and written to disk and they persist even if a system failure occurs. These updates now become permanent and are stored 
in non-volatile memory. The effects of the transaction, thus, are never lost.

Js Data Types
String Number BigInt Boolean undefined null Symbol Objects Function, Array, Buffer

REST
REpresentational State Transfer is an architectural style that defines a set of constraints to be used for creating web services
HTML, XML, Image or JSON

arrow function 
shorter syntax for a function expression 
does not have its own this, arguments, super, or new.target. 
best suited for non-method functions
cannot be used as constructors.

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
1682 views
0 comments
0 upvotes
company logo
Senior Software Engineer
4 rounds | 6 problems
Interviewed by PayPal
2810 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
3023 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