Development Engineer Interview Questions

37,122 development engineer interview questions shared by candidates

1. Please write a method to normalize a string which represents a file path. For the purposes of this question, normalizing means: • all single dot components of the path must be removed. For example, "foo/./bar" should be normalized to "foo/bar". • all double dots components of the path must be removed, along with their parent directory. For example, "foo/bar/../baz" should be normalized to "foo/baz". That's it. Normally, a path normalization algorithm would do a lot of other stuff, but for this question, don't try any other kind of normalization or transformation of the path. As an example, "foo//bar" should be normalized to "foo//bar" (i.e. a no-op). Use any language you feel comfortable in, we prefer Java, but it’s not required. The method should take in a string (or whatever passes for a string in the language of your choice) and return a string representing the normalized path. Please write code that you feel proud of and would check in to source control in a professional environment. 2. Once you have completed the exercise, please create ten (or more!) test cases you would you use to test the method.
Jan 26, 2012

1. Please write a method to normalize a string which represents a file path. For the purposes of this question, normalizing means: • all single dot components of the path must be removed. For example, "foo/./bar" should be normalized to "foo/bar". • all double dots components of the path must be removed, along with their parent directory. For example, "foo/bar/../baz" should be normalized to "foo/baz". That's it. Normally, a path normalization algorithm would do a lot of other stuff, but for this question, don't try any other kind of normalization or transformation of the path. As an example, "foo//bar" should be normalized to "foo//bar" (i.e. a no-op). Use any language you feel comfortable in, we prefer Java, but it’s not required. The method should take in a string (or whatever passes for a string in the language of your choice) and return a string representing the normalized path. Please write code that you feel proud of and would check in to source control in a professional environment. 2. Once you have completed the exercise, please create ten (or more!) test cases you would you use to test the method.

Was interviewed by a Software engineer. It was basically a "highest sum in an array" question disguised in an Oscar health context. Given an array of insulin readings for any given period. Write a function that will return true if an insulin reading is below 10. Array = [90, 92, 93, 91, 104, 102, 102, 106] The input was: Console.log(insulinReadingFunction(Array, 10) == True);
avatar

Software Development Engineer In Test (SDET)

Interviewed at Oscar Health

3
Jul 24, 2022

Was interviewed by a Software engineer. It was basically a "highest sum in an array" question disguised in an Oscar health context. Given an array of insulin readings for any given period. Write a function that will return true if an insulin reading is below 10. Array = [90, 92, 93, 91, 104, 102, 102, 106] The input was: Console.log(insulinReadingFunction(Array, 10) == True);

The first question he gave to me, design a cab booking system (he just want a brief about how I'm going to define my entities) Use cases: 1. user can book a ride. 2. user can store favorite locations 3. user can view past bookings 4. new drivers can sign up 5. driver can view past bookings The next question was given an integer N and D I had to add the smallest possible number in N so that N doesn't contain the digit D. Test case1 : N = 100 , D=0, output = 11 Test case2 : N = 5925, D=9, output = 75
avatar

Software Development Engineer

Interviewed at Kickdrum

3.5
Nov 10, 2021

The first question he gave to me, design a cab booking system (he just want a brief about how I'm going to define my entities) Use cases: 1. user can book a ride. 2. user can store favorite locations 3. user can view past bookings 4. new drivers can sign up 5. driver can view past bookings The next question was given an integer N and D I had to add the smallest possible number in N so that N doesn't contain the digit D. Test case1 : N = 100 , D=0, output = 11 Test case2 : N = 5925, D=9, output = 75

The questions I was asked are as follows :- 1. Difference between pass by value and pass by reference 2. Finding the largest number in an array 3. How would you test a Lamp ? 5. How would you test a Twitter application ? 6. Find a missing number in an array of sorted numbers. 7. What are primitive types and non primitives types. 8. How would you test a Restful Web Service
Sep 17, 2013

The questions I was asked are as follows :- 1. Difference between pass by value and pass by reference 2. Finding the largest number in an array 3. How would you test a Lamp ? 5. How would you test a Twitter application ? 6. Find a missing number in an array of sorted numbers. 7. What are primitive types and non primitives types. 8. How would you test a Restful Web Service

Flood-fill game. Given a 2D screen, location of a pixel in the screen and a color, replace color of the given pixel and all adjacent same colored pixels with the given color. Input is a 2D matrix, xth and yth of the pixel and the target color. The output should be the 2D matrix after this flood fill game.
avatar

Software Development Engineer

Interviewed at Snap

3.3
Dec 27, 2017

Flood-fill game. Given a 2D screen, location of a pixel in the screen and a color, replace color of the given pixel and all adjacent same colored pixels with the given color. Input is a 2D matrix, xth and yth of the pixel and the target color. The output should be the 2D matrix after this flood fill game.

Viewing 711 - 720 interview questions

Glassdoor has 37,122 interview questions and reports from Development engineer interviews. Prepare for your interview. Get hired. Love your job.