Developer Interview Questions

271,412 developer interview questions shared by candidates

Implement a data structure the support the following interface void push(Integer) - O(1) Integer pop() - O(1) - pop the last element that inserted Integer get_middle() - O(1) - get the middle element value get_k(k) - O(K) - get the first k elements values.
avatar

C++ Developer

Interviewed at Infinidat

3.9
Sep 4, 2020

Implement a data structure the support the following interface void push(Integer) - O(1) Integer pop() - O(1) - pop the last element that inserted Integer get_middle() - O(1) - get the middle element value get_k(k) - O(K) - get the first k elements values.

What would the count for the list of it. public class Test { string Data; int Id; public Test(int id, string data) { Data = data; Id = id; } } static void Main(string[] args) { List<Test> list = new List<Test>(); list.Add(new Test(10, "test")); var d = new Test(10, "test"); if (!list.Contains(d)) list.Add(d); Console.WriteLine("Count of the list is : " + list.Count); Console.ReadLine(); } } What to do to make count 1?
avatar

Senior Applications Developer

Interviewed at RBC

3.9
Mar 10, 2018

What would the count for the list of it. public class Test { string Data; int Id; public Test(int id, string data) { Data = data; Id = id; } } static void Main(string[] args) { List<Test> list = new List<Test>(); list.Add(new Test(10, "test")); var d = new Test(10, "test"); if (!list.Contains(d)) list.Add(d); Console.WriteLine("Count of the list is : " + list.Count); Console.ReadLine(); } } What to do to make count 1?

An airport employee checked a group of passengers through security on Thursday. On Friday, she checked three times as many passengers, and on Saturday she processed 5,000 passengers through security. In the 3 days, she processed 15,000 passengers. How many did she process on Friday?
avatar

Software Developer

Interviewed at Reynolds and Reynolds

3.5
Aug 9, 2017

An airport employee checked a group of passengers through security on Thursday. On Friday, she checked three times as many passengers, and on Saturday she processed 5,000 passengers through security. In the 3 days, she processed 15,000 passengers. How many did she process on Friday?

Viewing 1181 - 1190 interview questions

Glassdoor has 271,412 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.