LinkedIn Interview Question

There was a question based on algorithms which had to be coded. There were some questions on machine learning like "Which distance measure works well for what type of vectors?".