??? 12/21/06 09:19 Read: times |
#129884 - Works. Responding to: ???'s previous message |
Thanks Jan. Your algorithm creates a sequence with the properties that I am looking for. It seems to do some strange things (I compiled it on my PC) that are probably related to the length of an integer on the target system.
My own solution works without quadruple-nested loops. I was wondering if there was an even simpler solution than moving zeros around based on where the second block of zeros starts and how many zeros are on the trailing end. |