DEV Community


Maths for Coders : Chapter 1

Saurabh Kumar
I usually create code that skynet would have to send T-2020 to destroy!
・1 min read

Starting a thread where I will be adding some common math problems expected from developers in interview rounds or aptitude tests.

These will always come in handy - so I have added the cleanest version of some common functions

  • find all prime factors
  • check if a Number is odd-even
  • find LCM of n elements
  • find HCF of n elements

Discussion (0)