The third question was to generate all possible values for a string (for example if you have 'mother' sent as a string generate all possible strings you can have with the letters m, o, t, h, e, r like 'mthero', 'omther', 'therom', .....)
Software Interview Questions
550,797 software interview questions shared by candidates
John went to a store and asked how much a certain item costs. The clerk said 1 dollar. John said "Okay, I'll have 600." The clerk said, okay your total bill is 3 dollars. What did John Buy?
imploment intToStr(); find lca
what is the minimum number to be multiplied to 100! in order to make it divisible by 350 and many more were there which i don't remember
There was a logic question that consisted of creating a scenario, where there were pieces of paper with a number on one side of the paper and a letter on the other side. There were four different pieces of paper: one with an X and another with a Y. The other two have a 1 and 2 on it respectively. My interviewer then gave me the assertion "On the back of every paper with an X, there is an even number" I was then asked which pieces of paper I needed to flip over in order to prove the assertion.
They asked me not to reveal any questions.
There was for instance a basic coding challenge interview at the start. But a thing I'll mention is, for a high-level company like FB, there was an odd obsession with basics, when people don't work that way -- it's not that it's irrelevant, it's better to be solid than not, but it's a tiny piece of the puzzle that's gating prospective hires. It was strange to not be asked the types of questions that would indicate actual capacity to innovate, manage, etc. I would have only done that kind of challenge for maybe a fresh graduate, not someone who's done real work.
Do an in-place (without allocating any extra memory) rearrangement of a list of integers, putting non-zero elements first.
Q1> reverse a inked list and print the reversed list . Ex: 1->2->3 , result:3->2->1 Q2> divider a number by another number and print result and remainder if any. you are not supposed to use "/" and "%" operation
I was shown three programs. Each solving the same problem and was asked to analyze them and suggest which one is the best and why.
Viewing 1011 - 1020 interview questions