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 | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:5994e9ec-6876-b2f2-5de3-972438f6abeb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9182:83A89:521F27:6E8837:6A629D5E |
| html-safe-nonce | 38ebe7399ce8c5112b566472c94cfd4311ee6bf226b52067399d4c7d2badb4b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTgyOjgzQTg5OjUyMUYyNzo2RTg4Mzc6NkE2MjlENUUiLCJ2aXNpdG9yX2lkIjoiNDI2NzQwMzI5Mjg5NTc4MDE5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50b15689ba51a5a98eb715c83684b2b36d6ca052db769c3c7c1e8a27dc202143 |
| 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/_view_fragments/voltron/pull_requests/show/TheAlgorithms/JavaScript/1905/pull_request_layout |
| 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 | a6443033349a18134b517627f043d4a59a5110337b879810c7229c2c7e28eda0 |
| 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 | d6c6cacbe32d3ddfd1796fbd1a39b8fb47b87daf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width