Software Engineer applicants have rated the interview process at PayPal with 4 out of 5 (where 5 is the highest level of difficulty) and assessed their interview experience as 100% positive. To compare, the company-average is 77.8% positive. This is according to Glassdoor user ratings.
Here are the most commonly searched roles for interview reports -
The process took 1 day. I interviewed at PayPal (Chennai) in Sep 2011
Interview
written test
tech interview 1
tech interview 2
HR interview
Interview questions [1]
Question 1
nothing was unexpected for me , they just gone through the CV asked about the project i have did . ask some puzzle ,stress was on data structure concepts
ALGORITHM (weight: 30%)
A small directory is hard-coded as an array in the code:
String names[] = { "Elon Musk",
"Ken Howery",
"Luke Nosek",
"Max Levchin",
"Peter Thiel" };
A requirement is to be able to extend this directory dynamically at
runtime, without persistent storage. The directory can eventually grow
to hundreds or thousands of names and must be searchable by first or
last name.
1) What approach would you take? (Ans: HashMap)
2) Write an implementation for the add and search methods in pseudo-code
using data structures you have in mind.
SQL (weight: 10%)
Consider the table below:
table A (
id integer primary key,
name varchar(20),
age integer
)
Write a query to return the list of unique names from table A
CODING (weight: 50%)
The string "PAYPAL IS HIRING" is written in a zigzag pattern on a given
number of rows like this: (you may want to display this pattern in a
fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: PAHNAPLSIIGYIR
Write the code that will take a string and make this conversion given a
number of rows:
String convert(String text, int nRows);
convert("paypalishiring", 3) should return "pahnaplsiigyir"
I applied online. The process took 2 weeks. I interviewed at PayPal (San Jose, CA) in Nov 2011
Interview
I attended an online screening followed by two phone interviews. The first one was in C++ even though my resume is that for a Java Developer (with a little bit of C++). Next round was in Java. Both were coding centric, no deisgn-architecture-testing-process etc. I was asked to code on collabedit
Interview questions [5]
Question 1
What is the output from this code (assume int is 32 bit)
int f(int n)
{
return n * f(n-1);
}
print(f(100));
Consider the following function:
int f (int num)
{
int out = 0;
for (; num > 0; num /= 10) {
int d = num % 10;
out *= 10;
out += d;
}
return out;
}
1) What does it do?
2) Write the same algorithm using recursion
We have the following schema of a table:
create table Test (id number, name varchar2(32), desc varchar2(400));
create index index_test on Test (name);
Which of the following statements will invoke an index scan by oracle
execution plan
a) select * from test where name='name';
b) select * from test where name like 'name%';
c) select * from test where name like '%name';
d) select * from test where name like '%name%';"
The string "paypal is the faster, safer way to send money" is written in a
clockwise spiral pattern inside a square starting from the upper left
corner:
(you may want to display this pattern in a fixed font for better legibility).
P A Y P A L
F E R W A I
A M O N Y S
S D Y E T T
R N E S O H
E T S A F E
Then read line after line:
PAYPALFERWAIAMONYSSDYETTRNESOHETSAFE
Write the code that will take a string, calculate the minimum square that
will contain it and return the converted string:
String convert(String text);
convert("paypalisthefastersaferwaytosendmoney") should return
"paypalferwaiamonyssdyettrnesohetsafe"
What is the output for grep 'c[oa]t' *.cpp | more in Unix ?
Write a function to convert the string 'abcdabcdac' into 'a3b2c3d2'. Each charater is followed by the number of times in occurs in the original string. What is the order of this function? How would you improve it?
Given table A with id, name and age write a query to display distinct pairs or people with same name.
Why are indexes used?
There was a question based on Diamond inheritance hierarchy in C++.
What are static functions in C++?
What is the difference between simple function, virtual function and a pure virtual function?
What are templates in C++?