![]() Given a string containing only digits '0'-'9', write a function to determine if it's an additive number. Except for the first two numbers, each subsequent number in the sequence must be the sum of the preceding two. ![]() ![]() Additive number is a string whose digits can form additive sequence.Ī valid additive sequence should contain at least three numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |