Skip to content

Commit 70054e5

Browse files
Fixed description
1 parent bc77c9c commit 70054e5

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

LeetcodeProblems/Maximun_Subarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Maximum Subarray
3-
https://leetcode.com/problems/maximum-subarray/submissions/1
3+
https://leetcode.com/problems/maximum-subarray
44
55
Given an integer array nums, find the contiguous subarray (containing at least one number)
66
which has the largest sum and return its sum.

LeetcodeProblems/Permutations_Without_Duplicates.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
//https://leetcode.com/problems/permutations/description/
1+
/*
2+
Permutations withuot duplicates
3+
https://leetcode.com/problems/permutations/description/
4+
5+
Given a collection of distinct integers, return all possible permutations.
6+
7+
Example:
8+
9+
Input: [1,2,3]
10+
Output:
11+
[
12+
[1,2,3],
13+
[1,3,2],
14+
[2,1,3],
15+
[2,3,1],
16+
[3,1,2],
17+
[3,2,1]
18+
]
19+
*/
220

321
// Permutations wihto
422
var subsetWithDuplicates = function(nums) {

LeetcodeProblems/Subsets.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/*
2+
Subsets
3+
https://leetcode.com/problems/subsets/description/
4+
5+
Given a set of distinct integers, nums, return all possible subsets (the power set).
6+
7+
Note: The solution set must not contain duplicate subsets.
8+
9+
Example:
10+
11+
Input: nums = [1,2,3]
12+
Output:
13+
[
14+
[3],
15+
[1],
16+
[2],
17+
[1,2,3],
18+
[1,3],
19+
[2,3],
20+
[1,2],
21+
[]
22+
]
23+
*/
24+
25+
126
var subsets = function(nums) {
227
var ret = [];
328

0 commit comments

Comments
 (0)