Kata: Link You have to create an algorithm that will swap only the odd numbers, this was the solution submitted by me: function sortArray(array){ const odds = array .filter( item => item % 2) .sort((a,b) => a < b ? -1 : 1) return array ...
Web, Creative, Teacher
Product Engineer with more of a decade of experience, now working on careercraft.ing to help engineers all over the world to progress in their careers without losing a single win.
Markdown supported · ⌘↵ to post
No responses yet.