WD interview question

Write a function which multiples 2 integers without using the multiply operator.

Interview Answers

Anonymous

Nov 27, 2015

For Loop with additions

1

Anonymous

Dec 28, 2016

Write a For Loop to add first number to itself and consecutive sums for second number of times.This is because multiplication is just addition in principle when we go to elementary school math class...

Anonymous

Mar 10, 2017

The first two answers are technically correct. To have it run more efficiently you can incorporate dynamic programming into the solution to really "wow" the interview