Senior Software Interview Questions

75,566 senior software interview questions shared by candidates

1. experiences. 2. a graph related question as follows, later on I found out a tricky solution online. //problem: count islands in a graph // // A graph is a collection of nodes that are connected to each other with // edges. There are N nodes, numbered 1..N. and M edges. Each edge connects // two different node numbers. Here is an example graph with N= 8, M=6: // // 1---2---3 6 8 // | | | // 4---5 7 // // The goal is to count the number of islands in the graph. An island is a // graph of nodes that are connected only to themselves and not to any of the // other nodes in the graph. The above example has three islands. As a node // not connected to anything at all is regarded as it own island. // Implement the function IslandCount() below. The values N and M are passed // in, along with the array E which contains pairs of node numbers that are // connected by edges. The above example has E equal to // // E = { 1,2,2,3, 1,4, 2, 5, 4,5, 6, 7} // // IslandCount() should return the number of islands in the graph.
avatar

Senior Software Engineer

Interviewed at Nuro

4.2
Jul 2, 2019

1. experiences. 2. a graph related question as follows, later on I found out a tricky solution online. //problem: count islands in a graph // // A graph is a collection of nodes that are connected to each other with // edges. There are N nodes, numbered 1..N. and M edges. Each edge connects // two different node numbers. Here is an example graph with N= 8, M=6: // // 1---2---3 6 8 // | | | // 4---5 7 // // The goal is to count the number of islands in the graph. An island is a // graph of nodes that are connected only to themselves and not to any of the // other nodes in the graph. The above example has three islands. As a node // not connected to anything at all is regarded as it own island. // Implement the function IslandCount() below. The values N and M are passed // in, along with the array E which contains pairs of node numbers that are // connected by edges. The above example has E equal to // // E = { 1,2,2,3, 1,4, 2, 5, 4,5, 6, 7} // // IslandCount() should return the number of islands in the graph.

1. Given a list of ranges find the largest interval. 2. Given a string of men and women dancers ina given order, pair each man with a woman in a first-in first-pair fashion and print the pairs. 3. Given some coordinates find the line passing through most of the points.
avatar

Senior Software Engineer

Interviewed at NVIDIA

4.4
Sep 1, 2020

1. Given a list of ranges find the largest interval. 2. Given a string of men and women dancers ina given order, pair each man with a woman in a first-in first-pair fashion and print the pairs. 3. Given some coordinates find the line passing through most of the points.

Viewing 731 - 740 interview questions

Glassdoor has 75,566 interview questions and reports from Senior software interviews. Prepare for your interview. Get hired. Love your job.