摘要:
最多包含k个字符类型的子串 注意的是,k标识字符类型,不是次数 func findStr(s string,k int)int{ mxAns:=0 sLen:=len(s) if sLen<=k{ return sLen } mp :=make(map[byte]int) le:=0;ri:=0 / 阅读全文
posted @ 2022-06-26 19:19
知道了呀~
阅读(223)
评论(0)
推荐(0)
摘要:
https://leetcode.cn/problems/ZL6zAn/ var n,m,ans int var dir =[][]int{{1,0},{0,1},{-1,0},{0,-1}} func checkRange(x,y int) bool{ if x>=0&&x<n&&y>=0&&y< 阅读全文
posted @ 2022-06-26 18:00
知道了呀~
阅读(71)
评论(0)
推荐(0)
摘要:
func deleteDuplicates( head *ListNode ) *ListNode { new := &ListNode{Next:head} pre,cur := new,head for cur != nil{ for cur.Next != nil && cur.Val == 阅读全文
posted @ 2022-06-26 17:27
知道了呀~
阅读(80)
评论(0)
推荐(0)

浙公网安备 33010602011771号