Full Stack Engineer Interview Questions

18,308 full stack engineer 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 2051 - 2060 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 18,308 interview questions and reports from Full stack engineer interviews. Prepare for your interview. Get hired. Love your job.