Skip to content
View danwoods's full-sized avatar

Highlights

  • Pro

Organizations

@bottomdrawerbourbon @FlipsideCrypto

Block or report danwoods

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Knapsack algorithm in JavaScript Knapsack algorithm in JavaScript
    1
    //Knapsack algorithm
    2
    //==================
    3
    // wikipedia: [Knapsack (0/1)](http://en.wikipedia.org/wiki/Knapsack_problem#0.2F1_Knapsack_Problem)
    4
    // Given a set `[{weight:Number, benefit:Number}]` and a capacity,
    5
    // find the maximum value possible while keeping the weight below