Software Engineers Interview Questions

419,648 software engineers interview questions shared by candidates

You are given an array of numbers. You need to print the length of the maximum continuous sequence that you encounter. For example if input is [3,8,10,1,9,6,5,7,2 ], the continuous sequences are{1,2,3} and {5,6,7,8,9,10} the latter is the longest one so the answer becomes 6. O(n) solution was asked for, assuming you have a hash map which supports O(1) insertion and fetching operations
avatar

Software Development Engineer II

Interviewed at Microsoft

4
Apr 30, 2013

You are given an array of numbers. You need to print the length of the maximum continuous sequence that you encounter. For example if input is [3,8,10,1,9,6,5,7,2 ], the continuous sequences are{1,2,3} and {5,6,7,8,9,10} the latter is the longest one so the answer becomes 6. O(n) solution was asked for, assuming you have a hash map which supports O(1) insertion and fetching operations

Given a string of numbers, you can interpolate basic operations (+, -, * and /) to create an equation that can be evaluated using simple math. Given a string of numbers and a value, write a method that prints all of the equations that can be generated using that string that evaluate to the given value. ex- f("323",3) will print out "3 * 2 - 3"
avatar

Software Engineer

Interviewed at Triplebyte

3.5
Mar 31, 2016

Given a string of numbers, you can interpolate basic operations (+, -, * and /) to create an equation that can be evaluated using simple math. Given a string of numbers and a value, write a method that prints all of the equations that can be generated using that string that evaluate to the given value. ex- f("323",3) will print out "3 * 2 - 3"

A few questions on basic command-line syntax in Unix shells: 1. How would you log output and error messages from a command to a file? 2. How would you run the same command on every file in a directory? 3. How would you find the PID of a named process (say if you wanted to kill it)?
avatar

Software Engineer

Interviewed at Morgan Stanley

3.9
Feb 28, 2012

A few questions on basic command-line syntax in Unix shells: 1. How would you log output and error messages from a command to a file? 2. How would you run the same command on every file in a directory? 3. How would you find the PID of a named process (say if you wanted to kill it)?

Viewing 391 - 400 interview questions

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