InterviewLegend

Arrays and Strings

Alex Chen60 min readUpdated 172 real interview reports

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.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Medium
  3. 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.

Had your VMware interview?Tell us what they asked. Reviewed before it goes in, never with your name.
VMware interview guide

Know what VMware asks before you walk in.

33 coding · 3 system design · 15 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.