</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

04

:

51

:

22

Get this deal
Back to Dashboard

Location Index

Medium

Implement a LocationIndex class that stores a set of named points on a 2D grid.

The constructor takes three arrays: names (list of location name strings), xs (list of x-coordinates), and ys (list of y-coordinates). Each index i describes one location with name names[i], x-coordinate xs[i], and y-coordinate ys[i]. ...