Element Appearing More Than 25% In Sorted Array Solutions in GoNumber 1287Difficulty EasyAcceptance 60.2%Link LeetCodeOther languages —SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func findSpecialInteger(arr []int) int { n := len(arr) for i := 0; i < n-n/4; i++ { if arr[i] == arr[i+n/4] { return arr[i] } } return -1}package leetcode func findSpecialInteger(arr []int) int { n := len(arr) for i := 0; i < n-n/4; i++ { if arr[i] == arr[i+n/4] { return arr[i] } } return -1 }