08. Sum-String
β GFG solution to the Sum String problem: check if a numeric string follows a sum sequence using string addition and recursion. π
π§© Problem Description
π Examples
Example 1:
Input: s = "12243660"
Output: true
Explanation:
Split as ["12","24","36","60"]:
36 = 12 + 24
60 = 24 + 36
Example 2:
Example 3:
π Constraints:
β
My Approach
π‘ Idea
βοΈ Algorithm Steps:
π Time and Auxiliary Space Complexity
π§βπ» Code (C++)
π§βπ» Code (Java)
π Code (Python)
π§ Contribution and Support
πVisitor Count
Last updated