B = A; while (B % 2 == 0) B /= 2; // A is start to red, B is red to end
Play Designer template 6 comments
| Author: | smylic |
| Date posted: | 7/20/2010 10:21:13 PM |
| Difficulty (1..5): | 4.00 (3 votes) |
| Popularity: | 4 (4 liked, 0 disliked) |
| Correct solution submitted: | 12 |
| ebusiness (14) | keba (14) | qinn (14) | smylic (14) | edsaw (31) |
Number of commands in the solution is shown in brackets. Shown as ? when not available.
©2009 Igor Ostrovsky and other contributors. Terms of use