Full Stack Software Developer Interview Questions

19,481 full stack software developer interview questions shared by candidates

Implement (actually explain, because it's over the phone), a "max()" function inside of a Stack data structure of numbers. Meaning that every time you'll do a push() or poll() actions, you can run max() and say what is the current max number in the stack. This has to be an O(1) of time complexity and he don't care about space complexity.
avatar

Senior Full Stack Engineer

Interviewed at Connecteam

3.9
May 7, 2023

Implement (actually explain, because it's over the phone), a "max()" function inside of a Stack data structure of numbers. Meaning that every time you'll do a push() or poll() actions, you can run max() and say what is the current max number in the stack. This has to be an O(1) of time complexity and he don't care about space complexity.

Viewing 2161 - 2170 interview questions

Glassdoor has 19,481 interview questions and reports from Full stack software developer interviews. Prepare for your interview. Get hired. Love your job.