SIMPLE C PROGRAM
IntuitionApproachComplexity
Time complexity:
0 MS
Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->
0 MS

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```c []
bool hasSameDigits(char* s) {
    int l=strlen(s),n=l-1,jk;
    int arr[n];
    for(int i=0;i<l-1;i++)
    {
        arr[i]=(s[i]+s[i+1])%10;
    }
    while(n!=2)
    {
        for(int i=0;i<n-1;i++)
        {
            arr[i]=(arr[i]+arr[i+1])%10;
        }
        n--;
    }
    if(arr[0]==arr[1])
    {
        return 1;
    }
    return 0;
}
```
['C']