[Ilugc] factorial

  • From: srinathsmn@xxxxxxxxx (Varadharajan Mukundan)
  • Date: Mon, 28 Feb 2011 18:34:50 +0530

Hi,


you could increment using the or/xor operation, multiply by repeated
addition (which again is xor) operations. subtract with xor
operations. essentially, you would be rewriting every arithmetic is
the least arithmetic way possible.

but do keep this thread posted if there really is a simpler such
solution. would love to know :)

I think this should help http://www.go4expert.com/forums/showthread.php?t=3095

-- 
Thanks,
M. Varadharajan

------------------------------------------------

"Experience is what you get when you didn't get what you wanted"
? ? ? ? ? ? ?? -By Prof. Randy Pausch in "The Last Lecture"

My Journal :- www.thinkasgeek.wordpress.com

Other related posts: