Oleksii Trekhleb
59c6f4df13
Optimize permutations algorithm.
2018-12-14 13:56:15 +02:00
Oleksii Trekhleb
d9946c1249
Fix btPowerSet() comments.
2018-12-11 07:57:38 +02:00
Oleksii Trekhleb
da0f97a2d3
Fix PowerSet function naming.
2018-12-11 06:21:50 +02:00
Oleksii Trekhleb
3baf88cf75
Add PowerSet binary solution example.
2018-12-11 06:04:20 +02:00
Oleksii Trekhleb
2382225e03
Add comments to Cartesian Product function.
2018-12-05 06:06:29 +02:00
Oleksii Trekhleb
788ff22c90
Minor refactoring of dpMaximumSubarray.
2018-09-04 11:39:43 +03:00
Oleksii Trekhleb
814fa773ca
Add more test cases for finding max sub-array algorithm.
2018-09-04 11:35:13 +03:00
Kevin Brewer
2a2b5daa7d
Simplify dpMaximumSubarray ( #189 )
...
* Simplify dpMaximumSubarray
* change var name from currentMaxSum to currentSum
* fix comment with old variable name
2018-09-04 09:47:05 +03:00
Oleksii Trekhleb
5eb1195c61
Add backtracking solution for finding the power-set of a set.
2018-08-21 16:55:26 +03:00
Oz Weiss
7c9601df3e
Update combinationSum.js ( #137 )
...
fixing a few typos in comments
2018-08-06 16:40:23 +03:00
Oleksii Trekhleb
b87839062a
Add Pascal's triangle.
2018-07-07 11:11:20 +03:00
Oleksii Trekhleb
17ad4dc4d1
Upgrade packages.
2018-07-05 16:30:00 +03:00
Bruce-Feldman
e36c441fa9
Minor fixes. ( #91 )
...
* Get Bit: Make more terse
* Power of two: Allowed 1 as a valid power of 2.
Power of two: Removed unnecessary exception throwing.
* Fisher Yates: Made more terse
* Least Common Multiple: Fill undefined value
* Greatest Common Divisor: Fill undefined value.
Greatest Common Divisor: Make more terse.
2018-07-04 17:53:22 +03:00
Oleksii Trekhleb
b33f1d52dc
Add "Combination Sum" backtracking algorithm.
2018-06-30 10:19:14 +03:00
Oleksii Trekhleb
b41cffea0f
Add permutations/combinations cheat sheets.
2018-06-29 14:44:11 +03:00
Oleksii Trekhleb
00f75028bf
Simplify permutateWithoutRepetitions algorithm.
2018-06-29 12:23:26 +03:00
Oleksii Trekhleb
db7ab9e299
Simplify permutateWithRepetitions algorithm.
2018-06-28 21:28:50 +03:00
Oleksii Trekhleb
65f08db5de
Simplify combineWithRepetitions function.
2018-06-28 14:05:58 +03:00
Oleksii Trekhleb
e5a06e654b
Simplify combineWithoutRepetitions function.
2018-06-28 13:46:26 +03:00
Oleksii Trekhleb
98092ee43f
Code style fixes.
2018-06-18 15:57:45 +03:00
Sina Sharafzadeh
8c206a9976
fix unbound knapsack problem with items more than 1(default value) ( #73 )
2018-06-18 15:50:02 +03:00
Oleksii Trekhleb
19f4cc70d3
Add recursive way of generating permutations with repetitions.
2018-06-13 08:15:21 +03:00
Matt Mapplebeck
b0c55ec817
add recursive solution to permutations with repetitions problem ( #52 )
...
* add recursive solution to permutations with repetitions problem
* fix untested function, failing test
* add comments
2018-06-13 08:03:56 +03:00
Oleksii Trekhleb
8d3f83cfb7
Simplify combineWithoutRepetition algorithm.
2018-06-13 07:21:57 +03:00
Felix Rilling
5734e0a43e
Fix typos ( #59 )
...
* Fixed typo in the word 'independant'
* Fixed typo in the word 'subsequnce'
* Fixed typo in the word 'icecream'
* Fixed typo in the word 'subsequnce' in shortestCommonSubsequence
* Fixed typo in the word 'depected'
* Fixed typo in the word 'paramaters'
2018-06-12 17:46:40 +03:00
Oleksii Trekhleb
5ac85a230c
Update READMEs.
2018-06-08 15:38:36 +03:00
Oleksii Trekhleb
f966ef5d5d
Update READMEs.
2018-05-21 21:48:35 +03:00
Oleksii Trekhleb
b128f20443
Add maximum subarray.
2018-05-01 11:16:08 +03:00
Oleksii Trekhleb
0ce85ce15f
Add knapsack problem.
2018-04-30 14:08:14 +03:00
Oleksii Trekhleb
d20d0c8d4f
Add knapsack problem.
2018-04-30 12:37:12 +03:00
Oleksii Trekhleb
1c3cecf318
Add knapsack problem.
2018-04-30 08:53:49 +03:00
Oleksii Trekhleb
817ad9de2c
Add knapsack problem.
2018-04-30 08:52:48 +03:00
Oleksii Trekhleb
80433eb36f
Add knapsack problem.
2018-04-27 17:31:04 +03:00
Oleksii Trekhleb
1dd67ab911
Update packages.
2018-04-27 09:05:35 +03:00
Oleksii Trekhleb
e30d50e5c2
Update packages.
2018-04-27 09:04:45 +03:00
Oleksii Trekhleb
c9089bb5f3
Add SCS.
2018-04-27 08:19:11 +03:00
Oleksii Trekhleb
626eb8a746
Add longest increasing subsequence.
2018-04-26 15:49:52 +03:00
Oleksii Trekhleb
15e798c130
Update README.
2018-04-26 08:08:13 +03:00
Oleksii Trekhleb
c62a6ceabf
Restructure folders.
2018-04-26 07:26:12 +03:00