-
Updated
Apr 26, 2020
interview
Here are 1,539 public repositories matching this topic...
-
Updated
Apr 29, 2020 - Java
-
Updated
Apr 28, 2020 - Python
-
Updated
May 1, 2020 - Java
-
Updated
Apr 15, 2020 - JavaScript
-
Updated
Apr 28, 2020 - Java
集合 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 27, 2020
-
Updated
Oct 22, 2019 - Python
-
Updated
Jan 25, 2020 - JavaScript
-
Updated
Apr 30, 2020 - JavaScript
-
Updated
Apr 19, 2020 - C++
-
Updated
Oct 2, 2019
-
Updated
May 1, 2020 - JavaScript
-
Updated
Jul 17, 2019 - Python
-
Updated
Dec 1, 2019
-
Updated
Apr 28, 2020 - Java
-
Updated
Mar 16, 2020 - JavaScript
-
Updated
Apr 5, 2020 - JavaScript
-
Updated
Nov 29, 2019 - PHP
-
Updated
Jan 22, 2020
-
Updated
Apr 30, 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.
## Python/Regex fix
This is a reminder for me or a task if anyone wants :P
Basically, The last two questions aren't really regex's questions.
To do:
- Move said questions to correct place.
- Add new regex questions (Python related!)?
- Maybe add a new ## Regex section, as it is a valuable skill
-
Updated
Apr 4, 2020 - JavaScript
-
Updated
May 17, 2019 - Swift
Improve this page
Add a description, image, and links to the interview topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the interview topic, visit your repo's landing page and select "manage topics."

There are some interesting algorithms in simulation from Physics, Chemistry, and Engineering especially regarding Monte Carlo simulation: Heat Bath algorithm, Metro-Police algorithm, Markov Chain Monte Carlo, etc.