View Single Post
  #5   Spotlight this post!  
Unread 26-02-2009, 20:55
Booksy Booksy is offline
Registered User
FRC #1244 (Viking Robotics)
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Great White North
Posts: 97
Booksy will become famous soon enoughBooksy will become famous soon enough
Re: Canadian Computing Competition

s2 seemed fairly straightforward... How did you get the bottom possibilities, Did you start at the top and work down through the combinations IE:
1011
0110
0000
1100

vvv

Code:
Possibilities r4: 1011
Possibilities r3: 0110 1101
Possibilities r2: 0000 0110 1101
Possibilities r1: 1100 1100 1010 0001
would make 4 -1 =3 for duplicates.

which would be a *fairly* straight forward recursive function.
__________________
My favorite CD quote ever(taken out of context of course):
Quote:
Originally Posted by ttldomination
water would be hard to build
Reply With Quote