摘要: 无重复字符的最长字串 leetcode地址:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 题目描述: 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例: 输入: 阅读全文
posted @ 2019-11-10 14:00 tulipgirl 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Go学习笔记之Map Map 引用类型,哈希表。map的key必须可以比较相等,除了slice, map, function的内建类型都可以作为key。struct类型不包含上述字段,也可作为key。 map的操作 1.创建一个map。 1 m := map[int]struct{ 2 name s 阅读全文
posted @ 2019-11-10 11:47 tulipgirl 阅读(246) 评论(0) 推荐(0) 编辑