题目: 在一个长度为n的数组里的所有数字都在0到n-1的范围内。 数组中某些数字是重复的,但不知道有几个数字是重复的。也不知道每个数字重复几次。请找出数组中任意一个重复的数字。 例如,如果输入长度为7的数组{2,3,1,0,2,5,3},那么对应的输出是第一个重复的数字2。(不可以使用额外数组存储空 ...
分类:
编程语言 时间:
2020-06-14 17:08:35
阅读次数:
59
查找重复的电子邮箱 sql 编程 1. 地址 https://leetcode-cn.com/problems/duplicate-emails/ 2. 解法 内连接,或者多表查询 email 相同,但是 id 不同的行 select distinct p1.Email from Person p1 ...
分类:
其他好文 时间:
2020-06-14 15:12:25
阅读次数:
86
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: "abcabcbb"输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。示例 2: 输入: "bbbbb"输出: 1解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。示例 3: ...
分类:
其他好文 时间:
2020-06-14 15:11:21
阅读次数:
77
import java.util.ArrayList;import java.util.HashMap;import java.util.HashSet;import java.util.Stack;/** * 图的深度优先遍历 */public class DepthFirst { public ...
分类:
其他好文 时间:
2020-06-14 10:50:30
阅读次数:
57
Result Maps collection already contains value for com.zhaike.mapping.ChapterMapper.BaseResultMap Error creating bean with name 'courseController': Uns ...
分类:
其他好文 时间:
2020-06-13 21:43:13
阅读次数:
74
Caused by: java.sql.SQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'c.id' which is ... ...
分类:
数据库 时间:
2020-06-13 16:01:22
阅读次数:
325
题目如下: Given a binary string s and an integer k. Return True if every binary code of length k is a substring of s. Otherwise, return False. Example 1: ...
分类:
其他好文 时间:
2020-06-13 10:37:42
阅读次数:
60
package LeetCode_1411 /** * 1411. Number of Ways to Paint N × 3 Grid * https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid/description/ * * ...
分类:
其他好文 时间:
2020-06-12 12:47:40
阅读次数:
58
抽象数据类型 列表、栈、队列 实现数据结构 是否重复有序 不同的链表 单链表、双端链表、双端双向链表 LinkedList、ArrayList 大小固定,有下标 插入删除,效率都是O(N) add、remove、contains、indexof ArrayList、Vector 默认容量 10 默认 ...
分类:
其他好文 时间:
2020-06-11 21:54:26
阅读次数:
87
595. Big Countries https://leetcode.com/problems/big-countries/description/ Description + + + + + + | name | continent | area | population | gdp | + + ...
分类:
数据库 时间:
2020-06-10 19:28:00
阅读次数:
67