What is the fastest (in asymptotic worst-case time complexity) algorithm for determining if a sum of arbitrary positive integers is a power of two?
- What operations are you allowed to use?Mureinik– Mureinik2014-11-28 17:57:39 +00:00Commented Nov 28, 2014 at 17:57
- @RenéG That doesn't really answer the question. For instance, is addition considered to be constant-time, regardless of the size of the operands?Sneftel– Sneftel2014-11-28 18:00:53 +00:00Commented Nov 28, 2014 at 18:00
Add a comment |