Arrays and Strings
The five problems here come from VMware's general coding rounds. Each one takes an array or a string as input, and a hash map, a running value or a small table does the work. None of them needs an exotic structure.
The techniques are a running sum, a count key, a carry loop, sorting plus two pointers, and a 2D table. Start with the slow version if it helps you think, then move to the faster one before the interviewer has to ask.
Your code has to compile and pass the interviewer's own tests in a shared editor. Repeated values, empty input and an all-negative array are what usually break a solution. Run one of each by hand before you say you're done, and give the cost of your loop as you write it.
VMwarePremium lesson · Coding round
The 5 VMware problems are below.
- A Premium questionCoding · Medium
- A Premium questionCoding · Medium
- A Premium questionCoding · Easy
+ 2 more in this lesson
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.