Problems Based on Mathematics and Probability
Write methods to implement the multiply, substract and divide operations for integers, using only the add operator.
- a + b => a + negate(b)
- a * b => add b a times
- x = a / b => a = bx.
- Find the kth number such that the only prime factors are 3,5 and 7
Refer to individual problems under corresponding problem category for solutions.