Coding Interview Club

Prepare for coding interviews in simple and structured steps

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /home/hearti37/public_html/codinginterviewclub/includes/menu.inc).

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...

...
Back to Top