简单思路
func checkRecord(s string) bool { t := strings.Count(s, "A") if t >= 2 { return false } t = strings.Count(s, "LLL") if t > 0 { return false } return true }
更多内容请移步我的repo:https://github.com/anakin/golang-leetcode
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!