-
Updated
Apr 4, 2020
interview
Here are 1,503 public repositories matching this topic...
-
Updated
Mar 29, 2020 - Java
-
Updated
Apr 4, 2020 - Java
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.
I think it makes more sense to return an empty array
// invalid input return null or throw an error
if (!setA || !setB) {
return null;
}
if (!setA.length || !setB.length) {
return [];
}
// or do nothing since the for loop will not trigger anyway
- 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 3, 2020
https://mybinder.org/ Should I make a binder ? :) Or if there is a binder link, it's well hidden.
-
Updated
Apr 6, 2020 - JavaScript
-
Updated
Oct 2, 2019
-
Updated
Apr 5, 2020 - JavaScript
-
Updated
Mar 18, 2020 - C++
-
Updated
Jul 17, 2019 - Python
-
Updated
Dec 1, 2019
-
Updated
Mar 5, 2020 - Java
-
Updated
Mar 16, 2020 - JavaScript
-
Updated
Apr 5, 2020 - JavaScript
-
Updated
Jan 22, 2020
-
Updated
Nov 29, 2019 - PHP
-
Updated
Mar 8, 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."


A description is incomplete. It should mention:
These patterns are not competing, but complementing each other. To achieve availability, one needs both fail-over and replication.
right after
"There are two main patterns to support high availability: fail-over and replication. "