-
Updated
May 16, 2020
interview
Here are 1,569 public repositories matching this topic...
-
Updated
May 20, 2020 - Java
-
Updated
May 20, 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.
有一幅以二维整数数组表示的图画,每一个整数表示该图画的像素值大小,数值在 0 到 65535 之间。
给你一个坐标 (sr, sc) 表示图像渲染开始的像素值(行 ,列)和一个新的颜色值 newColor,让你重新上色这幅图像。
为了完成上色工作,从初始坐标开始,记录初始坐标的上下左右四个方向上像素值与初始坐标相同的相连像素点,接着再记录这四个方向上符合条件的像素点与他们对应四个方向上像素值与初始坐标相同的相连像素点,……,重复该过程。将所有有记录的像素点的颜色值改为新的颜色值。
最后返回经过上色渲染后的图像。
示例 1:
输入:
image = [[1,1,1],[1,1,0],[1,0,1]]
sr = 1, sc = 1, newColor = 2
输出: [[2,2,2],[2,2,0],[2,0,1]]
解析:
在图像的正中间,(坐标(
-
Updated
May 18, 2020
https://mybinder.org/ Should I make a binder ? :) Or if there is a binder link, it's well hidden.
-
Updated
May 3, 2020
-
Updated
May 17, 2020 - JavaScript
-
Updated
Apr 19, 2020 - C++
-
Updated
May 21, 2020 - JavaScript
-
Updated
Oct 2, 2019
-
Updated
Jul 17, 2019 - Python
-
Updated
Dec 1, 2019
-
Updated
May 19, 2020 - Java
-
Updated
Mar 16, 2020 - JavaScript
-
Updated
May 20, 2020 - JavaScript

-
Updated
Nov 29, 2019 - PHP
-
Updated
Jan 22, 2020
-
Updated
May 20, 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
May 20, 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. "