Software Engineers Interview Questions

419,718 software engineers interview questions shared by candidates

Flatten a 2D linkedList . A node contains 3 parameters namely, data , pointer to left, pointer to down . The aim of the function is to flatten the linkedlist. Ex: 1-->2-->4 | V 3 Answer is 1-->2-->3-->4 Ex: 1 --> 2--> 3--> 4 | 5-->6-->7 | | 8 9 Answer is 1-->2->5 -> 8 -> 6->9 ->7-> 3-> 4 He asked me to make the same linkedlist flatten not to create a new LinkedList or print the elements
avatar

Software Engineer

Interviewed at Bloomberg

4
Mar 6, 2015

Flatten a 2D linkedList . A node contains 3 parameters namely, data , pointer to left, pointer to down . The aim of the function is to flatten the linkedlist. Ex: 1-->2-->4 | V 3 Answer is 1-->2-->3-->4 Ex: 1 --> 2--> 3--> 4 | 5-->6-->7 | | 8 9 Answer is 1-->2->5 -> 8 -> 6->9 ->7-> 3-> 4 He asked me to make the same linkedlist flatten not to create a new LinkedList or print the elements

Brain teaser: two person have two pizza for food, but only one of them is holding the knife. One cut per pizza. Each has only one chance to have the priority to choose one slice of a pizza. It means a process of cutting, choosing, cutting choose. How many of the pizza can the one with knife get maximum?
avatar

Software Engineer

Interviewed at Bloomberg

4
Sep 8, 2010

Brain teaser: two person have two pizza for food, but only one of them is holding the knife. One cut per pizza. Each has only one chance to have the priority to choose one slice of a pizza. It means a process of cutting, choosing, cutting choose. How many of the pizza can the one with knife get maximum?

On campus: Given two strings determine if there is a one to one mapping between each letter in the string. On-site : Debug Conway’s game of life, snake key pattern of a matrix (the problem was a disguised diagonal traversal of a matrix), word break (see LeetCode), and find all possible words given a telephone number.
avatar

Software Engineer New Grad

Interviewed at Yext

3.6
Nov 18, 2017

On campus: Given two strings determine if there is a one to one mapping between each letter in the string. On-site : Debug Conway’s game of life, snake key pattern of a matrix (the problem was a disguised diagonal traversal of a matrix), word break (see LeetCode), and find all possible words given a telephone number.

Viewing 2421 - 2430 interview questions

Glassdoor has 419,718 interview questions and reports from Software engineers interviews. Prepare for your interview. Get hired. Love your job.