# Coding Interview Club

Prepare for coding interviews in simple and structured steps

# Mathematics and Probability

Aug 13, 2016 02:13pm
1. Write methods to implement the multiply, substract and divide operations for integers, using only the add operator.
• Hint:
• a + b => a + negate(b)
• a * b => add b a times
• x = a...
Aug 13, 2016 02:12pm

Problems related to sequence generation and finding if an element fits in a sequence.

Problems

1. Generate the below sequence with n elements.
• 1, 10, 11, 100, 110, 111, 1000.
• ...
Aug 13, 2016 03:49pm

In mathematics, the sieve of Eratosthenes is an algorithm for finding all prime numbers up to any given limit.

It does so by iteratively marking as composite (i.e., not prime) the multiples of each prime, starting with the multiples of 2...

Aug 13, 2016 03:49pm

Fibonacci numbers or Fibonacci sequence

In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

...