Developer Interview Questions

269,158 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.

You need to a develop a text-editor. What is the data structure that you'll use to store the data. It should consume minimum possible memory, and should be able to support most of the basic functions of a text editor
avatar

Software Developer

Interviewed at Tally Solutions

4.4
Jun 9, 2012

You need to a develop a text-editor. What is the data structure that you'll use to store the data. It should consume minimum possible memory, and should be able to support most of the basic functions of a text editor

Viewing 1191 - 1200 interview questions

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