InterviewLegend

Design a Data Structure

Alex Chen45 min readUpdated 172 real interview reports

In VMware's coding rounds, from MTS-1 to Staff, you'll often be asked to build a data structure you'd normally import from the library. The class is small, usually two to four methods. Each method has a cost target, and the code has to compile and run against the interviewer's tests.

Write the method signatures first and give each one's cost. Then pick the fields that make those costs possible. Corner cases count for more here than in a puzzle problem, because a repeated key or a call at an odd moment is usually where these classes break.

Below you'll build three small classes, each with a cost target per method. Where time matters, the class takes it as an argument so tests can drive it. Another common ask is worked in Coding & Low-Level Design.

VMwarePremium lesson · Coding round

The 3 VMware problems are below.

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

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.