javascript-algorithms icon indicating copy to clipboard operation
javascript-algorithms copied to clipboard

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

Results 281 javascript-algorithms issues
Sort by recently updated
recently updated
newest added

Knapsack has error

[{"_id":"62e717389a236c6edc5dfc56","body":"More specifically:\r\nTypeError: Cannot read property '2' of undefined\r\n at Knapsack.solveZeroOneKnapsackProblem (<Path>\\Knapsack.js:137:63)","issue_id":1659297582774,"origin_id":482878395,"user_origin_id":1005488,"create_time":1555186583,"update_time":1555186583,"id":1659311928764,"updated_at":"2022-07-31T23:58:48.764000Z","created_at":"2022-07-31T23:58:48.764000Z"},{"_id":"62e717389a236c6edc5dfc59","body":"Is this still open ? If it is, I would like to work on it.","issue_id":1659297582774,"origin_id":625655791,"user_origin_id":40039258,"create_time":1588919006,"update_time":1588919006,"id":1659311928768,"updated_at":"2022-07-31T23:58:48.768000Z","created_at":"2022-07-31T23:58:48.768000Z"},{"_id":"62e717389a236c6edc5dfc5c","body":"@trekhleb is this still open?","issue_id":1659297582774,"origin_id":853766599,"user_origin_id":26027603,"create_time":1622716187,"update_time":1622716187,"id":1659311928772,"updated_at":"2022-07-31T23:58:48.771000Z","created_at":"2022-07-31T23:58:48.771000Z"},{"_id":"62e717389a236c6edc5dfc5f","body":"Stop emailing me \n\n\nSent from my iPhone\n\n> On Jun 3, 2021, at 00:32, Etfagha oubeid Elatigh ***@***.***> wrote:\n> \ufeff\n> @trekhleb is this still open?\n> \n> \u2014\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub, or unsubscribe.\n","issue_id":1659297582774,"origin_id":873483729,"user_origin_id":79236350,"create_time":1625354667,"update_time":1625354667,"id":1659311928775,"updated_at":"2022-07-31T23:58:48.775000Z","created_at":"2022-07-31T23:58:48.775000Z"},{"_id":"62e717389a236c6edc5dfc61","body":"Then unsubscribe instead of spamming.","issue_id":1659297582774,"origin_id":873539920,"user_origin_id":7661457,"create_time":1625384734,"update_time":1625384734,"id":1659311928778,"updated_at":"2022-07-31T23:58:48.777000Z","created_at":"2022-07-31T23:58:48.777000Z"},{"_id":"62e717389a236c6edc5dfc63","body":"Hello, I see this issue is still open. Can I work on it? I have just started with open source contribution. Can anyone tell on how to reproduce the bug ?","issue_id":1659297582774,"origin_id":974612501,"user_origin_id":43419831,"create_time":1637395157,"update_time":1637395157,"id":1659311928780,"updated_at":"2022-07-31T23:58:48.780000Z","created_at":"2022-07-31T23:58:48.780000Z"}] comment

``` var uu = [ new KnapsackItem({ value: 3, weight: 2 }), new KnapsackItem({ value: 4, weight: 3 }), new KnapsackItem({ value: 5, weight: 4 }), new KnapsackItem({ value: 7,...

bug

Hard to view some images or diagrams in GitHub's Dark Mode

[{"_id":"62e717399a236c6edc5dfc66","body":"Hey there, I am interested in helping out with this issue. Where should i start?","issue_id":1659297582777,"origin_id":946367211,"user_origin_id":56761998,"create_time":1634619451,"update_time":1634619451,"id":1659311929079,"updated_at":"2022-07-31T23:58:49.079000Z","created_at":"2022-07-31T23:58:49.079000Z"},{"_id":"659462d717229e668305638d","body":"Starting from Nov 21, Github offers several ways to add dark mode alternatives for images:\r\n\r\nhttps:\/\/github.blog\/changelog\/2021-11-24-specify-theme-context-for-images-in-markdown\/\r\nhttps:\/\/github.blog\/changelog\/2022-05-19-specify-theme-context-for-images-in-markdown-beta\/\r\n\r\nI use the second for the logos, but I don't know if it still considered a beta after over a year.\r\n\r\nThe biggest problem is to choose a color that will fit for all the dark modes and one that will fit all the light modes.\r\n\r\nThe biggest issue is the the repo seems to not be updated or maintained anymore (?), by looking at the amount of PR and issues.","issue_id":1659297582777,"origin_id":1682984554,"user_origin_id":5442545,"create_time":1692306512,"update_time":1692306606,"id":1704223447024,"updated_at":"2024-01-02T19:24:07.024000Z","created_at":"2024-01-02T19:24:07.024000Z"}] comment

As I am using dark mode in GitHub, I came across at least a couple of diagrams that were not compatible with dark mode, making it difficult to understand the...

Added Solution to #550 Add A Star Algorithm.

images are not visible in dark mode

[{"_id":"62e717399a236c6edc5dfc69","body":"Is this issue can be assign?\r\n","issue_id":1659297582782,"origin_id":829522034,"user_origin_id":56075233,"create_time":1619723974,"update_time":1619723974,"id":1659311929400,"updated_at":"2022-07-31T23:58:49.400000Z","created_at":"2022-07-31T23:58:49.400000Z"},{"_id":"62e717399a236c6edc5dfc6c","body":"HI, this is duplicate of https:\/\/github.com\/trekhleb\/javascript-algorithms\/issues\/656 :) ","issue_id":1659297582782,"origin_id":944190648,"user_origin_id":86969511,"create_time":1634293780,"update_time":1634293780,"id":1659311929404,"updated_at":"2022-07-31T23:58:49.403000Z","created_at":"2022-07-31T23:58:49.403000Z"},{"_id":"62e717399a236c6edc5dfc6e","body":"Welcome to github @izabela-grzeskowiak-allegro ","issue_id":1659297582782,"origin_id":944255374,"user_origin_id":56075233,"create_time":1634300669,"update_time":1634300669,"id":1659311929407,"updated_at":"2022-07-31T23:58:49.406000Z","created_at":"2022-07-31T23:58:49.406000Z"}] comment

images are not visible if the github dark mode is enable ![image](https://user-images.githubusercontent.com/8420386/112955307-eaf6e580-915c-11eb-86da-96fc9301acc6.png)

I improved the performances of trialDivision by performing fewer checks, while still using the same overall idea of the algorithm.

This error occurd when I was running the file > src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.test.js ``` at Object. (~/javascript-algorithms-master/src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.test.js:45:7) ``` ```javascript describe('resizeImageWidth', () => { it('should perform content-aware image width reduction', () => {...

Closes #748 As mentioned in the issue #748 , I have added pancake sorting algorithm and have successfully written and passed the tests as well . ![open source](https://user-images.githubusercontent.com/41481913/131378196-edd888dc-66b6-4d4f-ac70-6003b69cc936.png) I request...

A Merkle tree is a data structure that is used in computer science applications. In bitcoin and other cryptocurrencies​, Merkle trees serve to encode blockchain data more efficiently and securely....