WD interview question

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

Interview Answers

Anonymous

27 Nov 2015

For Loop with additions

1

Anonymous

28 Dec 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

10 Mar 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