Created
August 30, 2020 17:35
-
-
Save trunkslamchest/fb5320d36d73160e4ea3453d013574be to your computer and use it in GitHub Desktop.
blog30_solution1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var minSubsequence = function(nums) { | |
// sum: an integer. the total sum of nums without any mutations | |
let sum = nums.reduce((a, b) => a + b ) | |
// the total sum of the subsequence we are building | |
let subSum = 0 | |
// the subsequence we want to build, then return at the end of the solution | |
let sub = [] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment