2020年5月2日

摘要: 地址 https://leetcode-cn.com/problems/single-number-ii/ 给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现了三次。找出那个只出现了一次的元素。 说明: 你的算法应该具有线性时间复杂度。 你可以不使用额外空间来实现吗? 示例 1: 阅读全文
posted @ 2020-05-02 12:32 itdef 阅读(238) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 题目描述给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 样例示例 1: 输入: "abcabcbb"输出: 3 解 阅读全文
posted @ 2020-05-02 11:17 itdef 阅读(863) 评论(0) 推荐(0)

导航