Title: fix: handle empty array in maximumNonAdjacentSum by shaked-shlomo · Pull Request #1905 · TheAlgorithms/JavaScript · GitHub
Open Graph Title: fix: handle empty array in maximumNonAdjacentSum by shaked-shlomo · Pull Request #1905 · TheAlgorithms/JavaScript
X Title: fix: handle empty array in maximumNonAdjacentSum by shaked-shlomo · Pull Request #1905 · TheAlgorithms/JavaScript
Description: Algorithms and Data Structures implemented in JavaScript for beginners, following best practices. - fix: handle empty array in maximumNonAdjacentSum by shaked-shlomo · Pull Request #1905 · TheAlgorithms/JavaScript
Open Graph Description: Bug Dynamic-Programming/MaxNonAdjacentSum.js guards the empty case with: if (nums.length < 0) return 0 length is never negative, so this is dead code. For an empty array the function falls throu...
X Description: Bug Dynamic-Programming/MaxNonAdjacentSum.js guards the empty case with: if (nums.length < 0) return 0 length is never negative, so this is dead code. For an empty array the function falls t...
Opengraph URL: https://github.com/TheAlgorithms/JavaScript/pull/1905
X: @github
Domain: Github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:1dd75f01-4cff-8772-31dc-c1f3d58d785c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 86BA:1F191:10A3A89:16C11BC:6A62DAAA |
| html-safe-nonce | 09999555f2d9d5ef6ab5f7e5a7dd3d8cbf95f8d8571c8063586023393ffa4c1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkJBOjFGMTkxOjEwQTNBODk6MTZDMTFCQzo2QTYyREFBQSIsInZpc2l0b3JfaWQiOiIyNDUwMDMxMDAzMDY1MDQ3NzIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3461e6c32eaddf940b86c9add64b2a7fe15a3c6a637a3f1ac78259e4520b2cef |
| hovercard-subject-tag | pull_request:3784463152 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/TheAlgorithms/JavaScript/pull/1905/commits |
| twitter:image | https://opengraph.githubassets.com/95ca029568366ed82073111517fe1c612d9212de11852dad37a7a57891e3a2d9/TheAlgorithms/JavaScript/pull/1905 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95ca029568366ed82073111517fe1c612d9212de11852dad37a7a57891e3a2d9/TheAlgorithms/JavaScript/pull/1905 |
| og:image:alt | Bug Dynamic-Programming/MaxNonAdjacentSum.js guards the empty case with: if (nums.length < 0) return 0 length is never negative, so this is dead code. For an empty array the function falls throu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shaked-shlomo |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-cache |
| go-import | github.com/TheAlgorithms/JavaScript git https://github.com/TheAlgorithms/JavaScript.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 97086543 |
| octolytics-dimension-repository_nwo | TheAlgorithms/JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 97086543 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/JavaScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width