-
Updated
Jul 12, 2020
Algorithm
Algorithms are detailed sets of guidelines created for a computer program to complete tasks efficiently and thoroughly.
Here are 8,334 public repositories matching this topic...
-
Updated
Jul 15, 2020 - Java
-
Updated
Jul 17, 2020 - Python
-
Updated
Jul 1, 2020 - Java
-
Updated
Jul 7, 2020 - JavaScript
集合 S 包含从1到 n 的整数。不幸的是,因为数据错误,导致集合里面某一个元素复制了成了集合里面的另外一个元素的值,导致集合丢失了一个整数并且有一个元素重复。
给定一个数组 nums 代表了集合 S 发生错误后的结果。你的任务是首先寻找到重复出现的整数,再找到丢失的整数,将它们以数组的形式返回。
示例 1:
输入: nums = [1,2,2,4]
输出: [2,3]
注意:
给定数组的长度范围是 [2, 10000]。
给定的数组是无序的。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/set-mismatch
-
Updated
Jul 16, 2020 - JavaScript
-
Updated
May 18, 2020 - Java
https://mybinder.org/ Should I make a binder ? :) Or if there is a binder link, it's well hidden.
-
Updated
Jul 16, 2020 - Python
-
Updated
Jul 8, 2020 - C#
Vectorized version of gradient descent.
theta = theta * reg_param - alpha * (1 / num_examples) * (delta.T @ self.data).T
We should NOT regularize the parameter theta_zero.
theta[0] = theta[0] - alpha * (1 / num_examples) * (self.data[:, 0].T @ delta).T
the first code line ,theta include theta[0].
so I think can write like this:
theta[0] -= alpha * (1 / num_examples) * (self.data[:, 0].
-
Updated
Jul 15, 2020 - C++
This is a(n):
- New algorithm
- Update to an existing algorithm
- Error
- Proposal to the Repository
Details:
We can make a file may be READ.
-
Updated
Jul 17, 2019 - Python
-
Updated
Jul 12, 2020 - Jupyter Notebook
-
Updated
Jul 17, 2020 - C++
-
Updated
Jul 8, 2020 - Java
Chapter number or note title: Chapter 0, Exercise 2, Footnote 24
Page number: 17
Error description: The footnote says "Ja, das ist das [...]maschine". However, the German language has 3 different articles (der, die das). In this particular case, you want "die" instead of "das" [...]maschine.
Suggested fix (if any):
Ja, das ist die Subatomar[...]maschine.
-
Updated
Jun 14, 2020 - HTML
-
Updated
Jun 19, 2020 - JavaScript
🚀 Feature Proposal
Adding leading zero in the question number will be an awesome feature for file explorer to sort files by the name.
-
Updated
Jul 17, 2020 - Java
-
Updated
Jun 13, 2020 - Python
-
Updated
Mar 13, 2020 - Java
-
Updated
Jun 21, 2020 - C++
- Wikipedia
- Wikipedia


https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/sets/cartesian-product/cartesianProduct.js#L8
I think it makes more sense to return an empty array