Thread: Binary Addition
View Single Post
  #4 (permalink)  
Old 04-22-2008, 04:39 PM
Deo Favente Deo Favente is offline
Member
 
Join Date: Feb 2008
Posts: 7
Deo Favente is on a distinguished road
This is what iv'e been doing:
1) I found the smaller array, and then made it the same length as the big array
2) I ran each element through a loop to compare the same index in both arrays
3) If both booleans are false, set the index in the final array false
If one is true, set the final boolean true
If both are true, then i make a new number that has 1 true in front followed by all false, so that the true is one ahead of the current index, thenm i add the temporary array to the final array (this is generally where i run into problems)
Reply With Quote