1-bit and 2-bit Characters Solutions in GoNumber 717Difficulty EasyAcceptance 48.7%Link LeetCodeOther languages Python, C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func isOneBitCharacter(bits []int) bool { var i int for i = 0; i < len(bits)-1; i++ { if bits[i] == 1 { i++ } } return i == len(bits)-1}package leetcode func isOneBitCharacter(bits []int) bool { var i int for i = 0; i < len(bits)-1; i++ { if bits[i] == 1 { i++ } } return i == len(bits)-1 }