Western Digital Interview Question: Write a function which multip... | Glassdoor

Interview Question

Engineer Interview(Student Candidate) Irvine, CA

Write a function which multiples 2 integers without using

  the multiply operator.

Interview Answer

3 Answers


For Loop with additions

Anonymous on Nov 27, 2015

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

Anonymous on Mar 9, 2017

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

Keshab Paudel on Dec 28, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.