Domanda di colloquio di Baidu

Write algorithm in your favorite language for sorting 2 arrays