i am solving a basic python problem,my task is to find all those triplets points which are at equidistant from each other. for example
points=[1,2,4,6,7,8]
res=[(1,4,7),(2,4,6),(4,6,8),(6,7,8)]
explanation:
(1,4,7)-> 4-1 is equals to 7-4
(2,4,6)-> 4-2 is equals to 6-4
and so on..