PayPal Interview Questions
- 0of 0 votes
AnswersSmallest string
- sobby May 03, 2020 in India
You are given the following :
1. Two strings S and T each of Length N
2. K Pairs of integers L(i) and R(i) (0 <= l(i) < R(i) <= N-1)
You can perform any of the following two operations any number of time.
1. You can replace the character of string S at the ith position with the character of string T at the ith position
2. You can select from any provided K pairs and you are allowed to swap characters at position L(i) and R(i) in string T
Now, you are required to perform all the operations optimally so that string S can be lexographically smallest.
All characters of S and T are of lowercase English letters and there are only two ways to perform all the operations either(111...1) then (2222...2) or (2222...2) then (1111.1)
Input Format :
1. First line contains number of test cases:
2. Second line contains the lengths of string and the number of pairs of integers.
3. Next two line contains S and T two strings.
4. The next K lines contains the space separated integers.
Sample Input :
1
8 4
abagfiab
cbacbcda
0 1
1 2
3 4
4 5
sample output : aaabccaa| Report Duplicate | Flag | PURGE
PayPal SDE-3 Algorithm - 1of 1 vote
AnswerHow do you make your pages performant?
- pri9 December 07, 2018 in United States| Report Duplicate | Flag | PURGE
PayPal Front-end Software Engineer - 1of 1 vote
AnswerWhat are the advantages of using React?
- pri9 December 07, 2018 in United States| Report Duplicate | Flag | PURGE
PayPal Front-end Software Engineer - 1of 1 vote
AnswerImplement the .reduce function of Javascript in plain JS.
- pri9 December 07, 2018 in United States| Report Duplicate | Flag | PURGE
PayPal Front-end Software Engineer JavaScript - 2of 2 votes
AnswersYou have to make a necklace with pearls. Minimum number of pearls that can be used is 1 and maximum is n. Each pearl has a magnificence coefficient and the necklace should be such that the pearls are in ascending order of their magnificence. Find such number of necklaces that can be formed with given condition.?
- shivamdurani220 August 22, 2018 in India| Report Duplicate | Flag | PURGE
PayPal abc - 0of 0 votes
AnswersThere is a web page which shows us a table which has products against their price, tax, discount, delivery time. There are about 20 products. There is a Database which has these same things. In your Selenium Test Automation Framework, how will you cross verify what is shown in the webpage correctly maps to the DB values for that product? Or just tell me how will you solve this problem, no need to write the code.
- TurboMap June 22, 2018 in United States| Report Duplicate | Flag | PURGE
PayPal Quality Assurance Engineer test - 0of 0 votes
AnswerYou are using a Webmail UI like GMail. You have to send a "Hello" mail to a person.
- TurboMap June 22, 2018 in United States
1. Write all the scenarios which you would cover in an automated test framework.
2. If you have to test it for 50 different users, what are the challenges you might face in writing your test scripts?
It seems like a pretty easy solution. But at the end he said I need to answer based on the amount of experience I have. I have 9 years of experience as a QA. And he wanted me to give a solution like I actually have 9 years of experience. In short, I blew this question.| Report Duplicate | Flag | PURGE
PayPal Quality Assurance Engineer Problem Solving - -1of 1 vote
AnswerYou have been given a map which holds book name and book author. One author might have several different books. But books are unique. Now, write a function which will return you a Map which will have the author name as unique and all the books he has written as values.
Book Map=["Java"-->"John", "C#"-->"Rob", "Ruby"-->"John", "Rails"-->"Rob"]
This should return a Map which has the following:
- TurboMap June 22, 2018 in United States["John"-->{"Java","Ruby"} "Rob"--{"C#","Rails"}]
| Report Duplicate | Flag | PURGE
PayPal Quality Assurance Engineer Data Structures - 0of 0 votes
AnswersWhat are the top 5 smoke test scenarios for FaceBook & Youtube mobile applications?
- pd March 06, 2015 in United States
(Right from installing apps)| Report Duplicate | Flag | PURGE
PayPal Android test engineer test - 1of 1 vote
AnswersWrite a method to print output of a^b
- careerCupguy10 January 25, 2014 in United States| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWrite a method to check if the given tree is binary search tree.
- SachinG2 October 23, 2013 in India| Report Duplicate | Flag | PURGE
PayPal Member Technical Staff Algorithm - 4of 4 votes
AnswersReplace element of an Array with nearest bigger number at right side of the Array in O(n)
- SachinG2 October 23, 2013 in India
For example if the input Array is
7, 5, 6, 3, 4, 1, 2, 9, 11
output array should be
9, 6, 9, 4, 9, 2, 9, 11, 11| Report Duplicate | Flag | PURGE
PayPal Member Technical Staff Algorithm - -1of 1 vote
AnswersWhat type of responsibilities are you seeking in a new role? What is your career objective? Why PayPal/Ebay ?
- vran.freelancer May 17, 2012 in United States| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Behavioral - 1of 1 vote
Answersmax sum sub-array problem. Given an array of positive and negative integers, find the maximum sum possible from the different sub-arrays.
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer - 0of 0 votes
AnswersYou are given the data for the tennis players - the number of games played, wins/losses, years played, etc. Design an algorithm to rank the players. This is an open ended question.
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Application / UI Design - 0of 0 votes
Answerdesign a locking mechanism.
- capricornkmu January 14, 2012 in United States| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Application / UI Design - 0of 0 votes
AnswersImplement Smart Pointer?
- sekhar.amgoth September 26, 2011 in -| Report Duplicate | Flag | PURGE
PayPal Developer Program Engineer C++ - 0of 0 votes
AnswersThis question regarding RTTI in C++..
- sekhar.amgoth September 26, 2011 in -
How dynamic_cast work internally...| Report Duplicate | Flag | PURGE
PayPal Developer Program Engineer C++ - 0of 0 votes
Answersin linked list how to find the 1/3rd and 2/3rd nodes efficiently...
- sekhar740 September 23, 2011 in India
ex : 1-->2-->3-->4-->5-->6.
outout :
1/3rd - 2
2/3rd - 4| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Linked Lists - 0of 0 votes
AnswersQuestion on c++ templates...
- sekhar740 September 23, 2011 in India
template <class T>
T max(T a, T b)
{
return ( a > b )? a : b;
}
for built in data types it will work fine .. if we send class objects as parameters then how it will work??| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer C++ - 0of 0 votes
Answerswill abstract class creates virtual table or not?
- Chandra Sekhar August 08, 2011| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer C++ - 0of 0 votes
AnswersHow to remove duplicate element from an array in one pass.
- RC May 23, 2011| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer C++ - 0of 0 votes
AnswersWrite code to create a form with two tabs. First tabs contains a form which has name, address etc. After filling first form when we click submit button, page goes to second tab which has some information or something. You have to write in javascript/css/html.
- JavaJavas February 19, 2011
Both tabs should be visible, but not forms.| Report Duplicate | Flag | PURGE
PayPal Web Developer Coding - 0of 0 votes
AnswersWrite an SQL query to select the nth row from a table.
- riderchap November 28, 2010
I asked the interviewer that, can I assume say the nth record is based on a primary/unique key column or any column, he said no, the question is just select the nth row.| Report Duplicate | Flag | PURGE
PayPal Database - 0of 0 votes
AnswersGiven 2 equal-length arrays of integers, find pairs, one from each array, that sum to 0.
- JeffD October 08, 2010
-- note that one wrinkle of this problem over the more usual form, which is to do this in a single array, is that you can't use the indexes / iterators crossing each other to know to stop, rather their /values/ have to cross (if you're doing it right, at or near 0).| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhat's an efficient way to process a large file, with lines of varying length?
- JeffD October 08, 2010
-- I said, break it up and process the pieces in parallel, using fseek to divide up the file, and scan backward and forward for the line terminators to decide which chunk a line belongs to. I think the answer he wanted though was to memory map it.| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Operating System