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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:6203c56e-6e95-8e8d-5dbb-01a23e227711 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9988:1ED5FF:36CAB:4F960:6A635B99 |
| html-safe-nonce | ccc3175087e8b725230c0d7e53116e7a7a0e286e37843a9434379ac4db63dea0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTg4OjFFRDVGRjozNkNBQjo0Rjk2MDo2QTYzNUI5OSIsInZpc2l0b3JfaWQiOiIxNTg2MjI2NTc5MTk4MTM5Mjg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 81a3deab83abe377aaa84f4e81b85037529d9e8a746037b9f3f82caf114ab815 |
| hovercard-subject-tag | pull_request:3784463152 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| 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 | 71b1218de2f2ab29c4d5ce72568e68e2c56044c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width