Leetcode additive no


Whats the differencebetween this and a normal fibonacci number

Hi Somasree… This question and a normal Fibonacci series are both different.
Fibonacci series is a fixed seies ie. 0 1 1 2 3 5 8 13…
While this question is totally different.Consider the following input.
Input: “199100199”
Output: true
Explanation: The additive sequence is: 1, 99, 100, 199. 1 + 99 = 100, 99 + 100 = 199
Both have only the same logic that the current number should be the sum of previous 2 numbers.
Hope ur doubt is cleared now.

yes is cleared now :grinning:

Kindly mark the doubt as cleared and give your feedback.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.