1p3a_oj Question

Minimum Index Distance Between 1 and 2

Question Details

Given an array nums of length n where each element is only 0, 1, or 2. Return the minimum absolute index distance between any pair of indices (i, j) such that nums[i] = 1 and nums[j] =

Full Details

🔒

Unlock all Waymo questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a waymo interview for a swe role during the coding round.

It covers the following topics: Arrays .

Topics