Software Engineer Interview Questions

466,396 software engineer interview questions shared by candidates

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"
avatar

Software Engineer

Interviewed at PayPal

3.6
Dec 19, 2011

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"

Was given a homework question(2days): Program using a language of your choice the following assignment, given a file of sorted strings (one string per line, example file was given) sorted according to some unknown alphabet, recover the order of characters of this alphabet.
avatar

Software Engineer

Interviewed at Amazon

3.5
Jan 5, 2010

Was given a homework question(2days): Program using a language of your choice the following assignment, given a file of sorted strings (one string per line, example file was given) sorted according to some unknown alphabet, recover the order of characters of this alphabet.

Main Technical Question: Write a function that takes as input an array of words input => ['cat', 'star', 'act', 'god', 'arts', 'dog', 'rats'] and returns a sorted array output => ['cat', 'act', 'god', 'dog', 'start', 'arts', 'rats']
avatar

Software Engineer - New Grad

Interviewed at Yelp

3.2
Sep 20, 2013

Main Technical Question: Write a function that takes as input an array of words input => ['cat', 'star', 'act', 'god', 'arts', 'dog', 'rats'] and returns a sorted array output => ['cat', 'act', 'god', 'dog', 'start', 'arts', 'rats']

Viewing 311 - 320 interview questions

Glassdoor has 466,396 interview questions and reports from Software engineer interviews. Prepare for your interview. Get hired. Love your job.