Meebo Interview Question
7 Interview Reviews |
Back to all Meebo Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Meebo:
Write a function for mutliply(a,b), where a and b are both positive integers, but you can only use the + or - operators.
| Tags: | easy, programming, recursive algorithm See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
0 of 0 people found this helpful
by Interview Candidate:
multiply(a, b):
if b == 0:
return 0
elif b == 1:
return a
else:
return a + multiply(a, b-1)