Codewars: Find the unique number πŸ‘¨β€πŸ’»

Categories: Education

A while ago, I signed up at https://www.codewars.com/ to practice both my PHP and JS skills. I decided to publish my results and to compare them with the best practice solution if found, thus, here we go.

Task:

  • Given an array with at least three numbers.
  • All numbers are equal except one.
  • Find the unique numer.

My solution:

Best practice:

Resources:

«
»

    Leave a Reply