Junior Software Engineer Interview Questions

7,241 junior software engineer interview questions shared by candidates

Write a function that returns the sum of the arguments. Once resolved, now refactor the function so it can be called in all these ways. add(1)()()()(1,2) // 3, add(1,2,3) // 3, add(1)()()(2,3) // 3, add()()()()()()()()()(1)(2,3) // 3 It was no clear to me first, but the function needs >2 arguments to return the sum.
avatar

Junior Software Engineer

Interviewed at Rocketrip

3.5
Dec 11, 2018

Write a function that returns the sum of the arguments. Once resolved, now refactor the function so it can be called in all these ways. add(1)()()()(1,2) // 3, add(1,2,3) // 3, add(1)()()(2,3) // 3, add()()()()()()()()()(1)(2,3) // 3 It was no clear to me first, but the function needs >2 arguments to return the sum.

Write a function that identifies valid strings of parenthesis “(()())” is ok, “)()” is not and then returns true or false. Then comment on BigO issues. Refactor to make it more efficient in terms of space complexity.
avatar

Junior Software Engineer

Interviewed at Rocketrip

3.5
Dec 11, 2018

Write a function that identifies valid strings of parenthesis “(()())” is ok, “)()” is not and then returns true or false. Then comment on BigO issues. Refactor to make it more efficient in terms of space complexity.

Viewing 6031 - 6040 interview questions

Glassdoor has 7,241 interview questions and reports from Junior software engineer interviews. Prepare for your interview. Get hired. Love your job.