Apple CoreOS: unspecified team

Q: given two binary trees, write me a function that says if they're identical. 

A: use recursion it's easy.

Q: given N points in a cartesian plane, find the pair that's the closest. 

A: this is a famous problem.