-
Updated
Apr 22, 2020
Algorithm
Algorithms are detailed sets of guidelines created for a computer program to complete tasks efficiently and thoroughly.
Here are 8,038 public repositories matching this topic...
-
Updated
Apr 21, 2020 - Java
-
Updated
Apr 15, 2020 - JavaScript
I wonder if it would be more beneficial for people to use Java 8 syntax for coding in interviews (many of them prefer it), and if so, if we should update our codebase to Java 8. I am up for making the changes.
-
Updated
Apr 22, 2020 - JavaScript
一个班级60%喜欢足球,70%喜欢篮球,80%喜欢排球,问:三种球都喜欢占比最大可能有多少,最小可能有多少?即求三种球都喜欢的比例范围
-
Updated
Mar 15, 2020 - JavaScript
-
Updated
Apr 5, 2020 - Java
def test_two_sum(self):
solution = Solution()
assert_raises(TypeError, solution.two_sum, None, None)
assert_raises(ValueError, solution.two_sum, [], 0)
target = 7
nums = [1, 3, 2, -7, 5]
expected = [2, 4]
assert_equal(solution.two_sum(nums, target), expected)
print('Success: test_two_sum')
[4, 2] should also
-
Updated
Apr 14, 2020 - Python
-
Updated
Mar 27, 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].
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
Apr 19, 2020 - C++
-
Updated
Jul 17, 2019 - Python
-
Updated
Apr 21, 2020 - Jupyter Notebook
-
Updated
Mar 12, 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
Apr 22, 2020 - JavaScript
-
Updated
Jan 14, 2020 - HTML
🚀 Feature Proposal
Adding leading zero in the question number will be an awesome feature for file explorer to sort files by the name.
-
Updated
Apr 13, 2020 - Python
-
Updated
Apr 22, 2020 - C++
From a comment I got on YouTube that needs investigation:
"If the graph has 3 nodes - 0, 1, 2 and the indegree and outdegree of all the nodes are 0. Then, there is an empty Eulerian path, but the code results in "0". Do you think findStartNode() can be enhanced to handle this edge case?"
Relevant Videos:
Euler path/circuit existence: https://youtu.be/xR4sGgwtR2I
Euler path/circuit algori
Add radix sort
-
Updated
Mar 13, 2020 - Java
-
Updated
Mar 26, 2020 - C++
-
Updated
Feb 8, 2020
- Wikipedia
- Wikipedia
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.