MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / isPalindromeRecursiveHelper

Function isPalindromeRecursiveHelper

strings/palindrome/ispalindrome.go:45–55  ·  view source on GitHub ↗
(runes []rune, start int64, end int64)

Source from the content-addressed store, hash-verified

43}
44
45func isPalindromeRecursiveHelper(runes []rune, start int64, end int64) bool {
46 if start >= end {
47 return true
48 }
49 if runes[start] != runes[end-1] {
50 return false
51 }
52 start = start + 1
53 end = end - 1
54 return isPalindromeRecursiveHelper(runes, start, end)
55}

Callers 1

IsPalindromeRecursiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected