Go
Code
![image.png](https://assets.leetcode.com/users/images/03f9c282-b294-466e-88d5-b8c00c57aab9_1742694496.0946155.png)


# Code
```golang []
func hasSameDigits(s string) bool {
	operationResult := s

	for {
		operationResult = reduceDigit(operationResult)

		if len(operationResult) == 2 {
			break
		}
	}

	if operationResult[0] == operationResult[1] {
		return true
	}
	return false
}

func reduceDigit(s string) string {

	baseRune := '0' // use this to convert runes to int
	var newDigitString strings.Builder

	for i := 0; i < len(s)-1; i++ {
		curDig := ((int(s[i] - byte(baseRune))) + int(s[i+1]-byte(baseRune))) % 10
		newDigitString.WriteString(strconv.Itoa(curDig))
	}

	return newDigitString.String()
}

```
['Go']