Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Level/Binary Racer
(section)
From Turing Complete
Views
Read
Edit
Edit source
View history
associated-pages
Page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Fast strategy == A fast strategy is to set the bit representing the highest value that doesn't overflow the target value. Keep doing this and you will hit the target value in no time. ===An example:=== The target value is 43. The first bit to set is 32. Next possible bit is for 16, but setting it will overflow. Continue to the bit for 8 instead. That makes 40. Set the two remaining bits to reach 43.
Summary:
Please note that all contributions to Turing Complete are considered to be released under the Creative Commons Attribution-ShareAlike (see
TuringComplete:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)