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/

Problems Based on Mathematics and Probability

  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 / b => a = bx.
  2. 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.

Back to Top