in reply to next power of two
sub next_power_of_two ($) { my %s; @s{1..$_[0]} = (); return substr(%s,1+index(%s,'/')); } print next_power_of_two(257);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: next power of two
by BrowserUk (Patriarch) on Sep 11, 2011 at 13:05 UTC | |
by trizen (Hermit) on Dec 25, 2012 at 16:08 UTC |