interview
Here are 1,402 public repositories matching this topic...
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. "
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
It is known that Alibaba is a great international company.Maybe @kdn251 can open a catalog:interviews/company/Alibaba.
For example,a 2019 Alibaba interview question.
//Question: you need to caculate sqrt(2) to 10 decimal places accurately without math library.
`double sqrt2( )
{
double low = 1.4, high = 1.5;
double mid = (low + high) / 2;
while (high – low > 0.0000000001)
{
你的朋友正在使用键盘输入他的名字 name。偶尔,在键入字符 c 时,按键可能会被长按,而字符可能被输入 1 次或多次。
你将会检查键盘输入的字符 typed。如果它对应的可能是你的朋友的名字(其中一些字符可能被长按),那么就返回 True。
示例 1:
输入:name = "alex", typed = "aaleex"
输出:true
解释:'alex' 中的 'a' 和 'e' 被长按。
示例 2:
输入:name = "saeed", typed = "ssaaedd"
输出:false
解释:'e' 一定需要被键入两次,但在 typed 的输出中不是这样。
示例 3:
输入:name = "leelee", typed = "lleeelee"
输出:true
示例 4:
输入:name = "laiden", typ
-
Updated
Feb 3, 2020
https://mybinder.org/ Should I make a binder ? :) Or if there is a binder link, it's well hidden.
在ES5中,顶层对象的属性和全局变量是等价的,var 命令和 function 命令声明的全局变量,自然也是顶层对象。
var a = 12;
function f(){};
console.log(window.a); // 12
console.log(window.f); // f(){}
但ES6规定,var 命令和 function 命令声明的全局变量,依旧是顶层对象的属性,但 let命令、const命令、class命令声明的全局变量,不属于顶层对象的属性。
let aa = 1;
const bb = 2;
console.log(window.aa); // undefined
console.log(window.bb); // undefined
在哪里?怎么获取?通过在设置断点,看看浏览器是
-
Updated
Feb 3, 2020 - JavaScript
-
Updated
Feb 3, 2020
-
Updated
Feb 3, 2020 - JavaScript
-
Updated
Feb 3, 2020 - C++
-
Updated
Feb 3, 2020
-
Updated
Feb 1, 2020 - JavaScript
-
Updated
Feb 3, 2020 - JavaScript
-
Updated
Feb 3, 2020 - Java
-
Updated
Feb 3, 2020
-
Updated
Feb 3, 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
Feb 3, 2020 - JavaScript
## 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
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."

The cards don't have new lines in the code and it makes it very hard to read them. Any ideas on how a new line can be added.