Staff Software Engineer Interview Questions

2,628 staff software engineer interview questions shared by candidates

Design a stack class which will return the most occurring number in the stack. If 2 numbers have the same count of occurrence then return the number which is at the top of stack. For this I was required to write the class with 2 methods push() & pop().
avatar

Staff Software Engineer

Interviewed at ServiceNow

4.1
Jun 30, 2022

Design a stack class which will return the most occurring number in the stack. If 2 numbers have the same count of occurrence then return the number which is at the top of stack. For this I was required to write the class with 2 methods push() & pop().

Viewing 261 - 270 interview questions

Glassdoor has 2,628 interview questions and reports from Staff software engineer interviews. Prepare for your interview. Get hired. Love your job.