Frage im Vorstellungsgespräch bei WD

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

Antworten zu Vorstellungsgespräch

Anonym

27. Nov. 2015

For Loop with additions

1

Anonym

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

Anonym

10. März 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