亚麻电面题
Question You’ve got a text file that contains x,y,z-coordinate points for every star in the sky (on the order of 1 billion (this is N)). I want to know the 100 (or K) closest stars to earth, how would you compute that? earth = 0, 0, 0 Solution (1) Split the file by N= 10000 lines, and calculate the distance, define a class Star with