Apr-24-2018, 09:50 AM
how can i determine the distance between two indices in a list of values?
given a = [-1, 5, 4, 8, 3, 21, 18, 16, 3, 2, 3, 1, 4, 5, 17, 22, 36, 33, 34, 9, 1, -2]
how can i write a code which finds the distance between a[0] and a[3]?
given a = [-1, 5, 4, 8, 3, 21, 18, 16, 3, 2, 3, 1, 4, 5, 17, 22, 36, 33, 34, 9, 1, -2]
how can i write a code which finds the distance between a[0] and a[3]?