Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Power Of Two

Originally published: 2010-11-28 16:02:37
Last updated: 2010-11-28 16:05:19
Author: Thomas Lehmann

  • It's a simple algorithm doing nearly the same what you can do when calculating a multiplication on a piece on paper.
  • In python you don't need this. You simply say 2**n and you have it; so see it as prototyping for a final C/C++ program where you are limited by the given datatypes ... as long you don't write a 'BigNumber' class.