Stack Problems
A stack fits any problem where the newest open item has to be settled first. VMware asks this family from campus screens up to Staff loops. The code is rarely long, and most of the time goes to the follow-ups.
One of the three is the one you'll see most, and once it works, expect the interviewer to change the rules. The other two keep a monotonic stack, which stays in sorted order and pops anything that breaks it. One of them is written as a small class, so it doubles as a light API design check.
Say what the stack holds before you push anything. It might be a character, an index or a pair. Then say when an item comes off. If every item goes on once and off once, the whole pass is linear, and you can state that bound without being asked.
VMwarePremium lesson · Coding round
The 3 VMware problems are below.
- A Premium questionCoding · Easy · Signature problem
- A Premium questionCoding · Hard
- A Premium questionCoding · Medium
Each with hints, the follow-up and a tested solution.
Get the VMware questions$49 a year · all 100 companies · cancel anytime
From 172 VMware reports, forum threads behind logins and write-ups in Chinese.
VMware interview guideKnow what VMware asks before you walk in.
33 coding · 3 system design · 15 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.