InterviewLegend

Linked List Problems

Alex Chen50 min readUpdated 172 real interview reports

Linked list questions come up at VMware at almost every level, from campus screens to SMTS loops. The lists are short. So is the code, which means the interviewer mostly watches how you move the pointers. A first answer that walks the list twice is usually accepted, and then you're asked to do it in one pass.

Most one-pass answers use two pointers, at different speeds or a fixed gap apart. One problem is different. It needs a dummy head and careful stitching where one block meets the next.

Before you write a loop, draw three nodes. Mark where each pointer starts and where it ends up. Off-by-one bugs sit at the head and the tail, and a quick sketch on the shared screen finds them before the interviewer does. Then say out loud what your code does with an empty list and with a single node.

VMwarePremium lesson · Coding round

The 4 VMware problems are below.

  1. A Premium questionCoding · Medium · Signature problem
  2. A Premium questionCoding · Easy · Frequently asked
  3. A Premium questionCoding · Medium · Frequently asked

+ 1 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.