Crossover for Work Interview Question

Algorithm test (30 min): they asked to implement a basic algorithm (sorting an array or numbers) in your language of choice

Interview Answer

Anonymous

Sep 10, 2020

function sortArray(n){ n.sort(); return n; };