Monday, October 14, 2013

[Amazon] Long subtraction

Given two arrays A and B containing elements of digit, return array A-B. Your machine can only do calculation of less than 20.
Ex: A- {1,2,5,7,5}
      B-    {3,4,8,9}
     A-B = {9,0,8,6}

1 comment: