-
Updated
May 29, 2020 - Java
leetcode
Here are 3,743 public repositories matching this topic...
-
Updated
Jun 28, 2020 - Java
-
Updated
Jul 2, 2020
- We have BFS and DFS images in both Breadth First Traversal and Depth First Traversal. We should have illustrations in the respective sections.
集合 S 包含从1到 n 的整数。不幸的是,因为数据错误,导致集合里面某一个元素复制了成了集合里面的另外一个元素的值,导致集合丢失了一个整数并且有一个元素重复。
给定一个数组 nums 代表了集合 S 发生错误后的结果。你的任务是首先寻找到重复出现的整数,再找到丢失的整数,将它们以数组的形式返回。
示例 1:
输入: nums = [1,2,2,4]
输出: [2,3]
注意:
给定数组的长度范围是 [2, 10000]。
给定的数组是无序的。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/set-mismatch
-
Updated
Apr 19, 2020 - C++
-
Updated
Jul 17, 2019 - Python
-
Updated
Jun 29, 2020 - Java
-
Updated
May 25, 2020 - Jupyter Notebook
🚀 Feature Proposal
Adding leading zero in the question number will be an awesome feature for file explorer to sort files by the name.
-
Updated
Mar 13, 2020 - Java
-
Updated
Jun 21, 2020 - C++
Given a blacklist B
containing unique integers from [0, N)
, write a function to return a uniform random integer from [0, N)
which is NOT in B
.
Optimize it such that it minimizes the call to system’s Math.random()
.
Note:
1 <= N <= 1000000000
0 <= B.length < min(100000, N)
[0, N)
does NOT include N. See [interval notation](https://en.wikipedia.org/wiki/Interval_\
-
Updated
Jun 8, 2020 - Swift
Add new sections by GitbookIO editor is quite simple, but sometimes you may forget to add sections in SUMMARY.md.
It is easy to parse the title of source .md files and add it to the appropriate chapter position. I will implement this feature with Python.
-
Updated
Mar 13, 2020 - C++
-
Updated
Jul 1, 2020 - Go
-
Updated
May 12, 2020 - Java
-
Updated
May 6, 2020 - Go
-
Updated
Jul 3, 2020 - Java
-
Updated
Oct 16, 2019 - Java
-
Updated
Jul 3, 2020 - Java
-
Updated
Mar 5, 2020 - JavaScript
It'll be good to add an introduction into the readme for the basic information of the repo, such as where are the problems coming from, how do you pick problems into this repo, etc.

-
Updated
Jul 3, 2020 - C++
-
Updated
Jun 13, 2020 - Python
Improve this page
Add a description, image, and links to the leetcode topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the leetcode topic, visit your repo's landing page and select "manage topics."