Re: [algogeeks] Additive sequence

2011-10-11 Thread Rujin Cao
This looks like concatenation of Fibonacci sequence。 On Mon, Oct 10, 2011 at 3:34 PM, anand karthik wrote: > Hi, > > I dont remember the question text exactly but the following should > convey it well > > The question: > > A number is said to be an additive number if it has the following forma

Re: [algogeeks] Additive sequence

2011-10-11 Thread prasad jondhale
i dont see any other approach than brute force On Mon, Oct 10, 2011 at 1:04 PM, anand karthik wrote: > Hi, > > I dont remember the question text exactly but the following should > convey it well > > The question: > > A number is said to be an additive number if it has the following format: >

[algogeeks] Additive sequence

2011-10-10 Thread anand karthik
Hi, I dont remember the question text exactly but the following should convey it well The question: A number is said to be an additive number if it has the following format: 3268126844 : 32 6812 6844 : 32 + 6812 = 6844 123581321 : 1 2 3 5 8 13 21 : 1+2 = 3 , 2+3 = 5 , 3+5=8, 5+8 = 13, 8+13 -2