Software Developer 2 Interview Questions

2,532 software developer 2 interview questions shared by candidates

Q1. Write a program to print out sequence of execution for a given interdependent task list. e.g. Given tasks set= [1,2,3,4,5] and Dependency map: Task Dependent On 3 => 1,5 2 => 5,3 4 => 3 5 => 1 Output=> [1, 5, 3, 2 ,4] or [1, 5, 3, 4, 2] q2) Reorder an input array to place all odds before evens. For example, after numbers in the array {1, 2, 3, 4, 5} are reordered, it looks like {1, 5, 3, 4, 2}. The result is not unique. LLD+HLD: BookmyShow
avatar

SDE-2 Backend

Interviewed at CoinSwitch

3.6
Dec 28, 2021

Q1. Write a program to print out sequence of execution for a given interdependent task list. e.g. Given tasks set= [1,2,3,4,5] and Dependency map: Task Dependent On 3 => 1,5 2 => 5,3 4 => 3 5 => 1 Output=> [1, 5, 3, 2 ,4] or [1, 5, 3, 4, 2] q2) Reorder an input array to place all odds before evens. For example, after numbers in the array {1, 2, 3, 4, 5} are reordered, it looks like {1, 5, 3, 4, 2}. The result is not unique. LLD+HLD: BookmyShow

Viewing 1851 - 1860 interview questions

Glassdoor has 2,532 interview questions and reports from Software developer 2 interviews. Prepare for your interview. Get hired. Love your job.