Skip to content

Instantly share code, notes, and snippets.

@trunkslamchest
Created August 30, 2020 17:36
Show Gist options
  • Save trunkslamchest/c07d02a15a89a013943552fae06590c2 to your computer and use it in GitHub Desktop.
Save trunkslamchest/c07d02a15a89a013943552fae06590c2 to your computer and use it in GitHub Desktop.
blog30_solution2.js
var minSubsequence = function(nums) {
let sum = nums.reduce((a, b) => a + b )
let subSum = 0
let sub = []
// sort nums from least to greatest
nums.sort((a, b) => a - b)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment