Skip to content

Instantly share code, notes, and snippets.

@trunkslamchest
Created August 30, 2020 17:35
Show Gist options
  • Save trunkslamchest/fb5320d36d73160e4ea3453d013574be to your computer and use it in GitHub Desktop.
Save trunkslamchest/fb5320d36d73160e4ea3453d013574be to your computer and use it in GitHub Desktop.
blog30_solution1.js
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