On Sunday, I worked on the second question of OA2, which is a textbook-style algorithm: closest pair. There is a mistake in one place: curMinDis = (leftMinDis <= rightMinDis) ? leftMinDis : rightMinDis; Just make this correction.
Anonymous interview experiences, offers and career talk from frontend engineers.