Title: Update 70. Climbing Stairs.md by shardzhang · Pull Request #1 · guest-li/algorithm014-algorithm014 · GitHub
Open Graph Title: Update 70. Climbing Stairs.md by shardzhang · Pull Request #1 · guest-li/algorithm014-algorithm014
X Title: Update 70. Climbing Stairs.md by shardzhang · Pull Request #1 · guest-li/algorithm014-algorithm014
Description: Contribute to guest-li/algorithm014-algorithm014 development by creating an account on GitHub.
Open Graph Description: 数组可以直接开到int[] res = new int[n + 3];此外,不需要通过res[n-1]的方式访问第n个元素,直接res[n]即可。 开辟长度为n的数组存储中间结果不是最优的。空间复杂度可进一步优化为O(1)。 md的代码格式,可以在代码段的开头和结尾加上```
X Description: 数组可以直接开到int[] res = new int[n + 3];此外,不需要通过res[n-1]的方式访问第n个元素,直接res[n]即可。 开辟长度为n的数组存储中间结果不是最优的。空间复杂度可进一步优化为O(1)。 md的代码格式,可以在代码段的开头和结尾加上```
Opengraph URL: https://github.com/guest-li/algorithm014-algorithm014/pull/1
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:02c0be14-0354-8625-77ef-85fad844dead |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8966:19D7AD:24EBB98:33C6CA1:6A5F5FEE |
| html-safe-nonce | 1fad06b3173bbbefda44f13ef22336c8658e5975c4ed0befae7d8e7f7be40d21 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTY2OjE5RDdBRDoyNEVCQjk4OjMzQzZDQTE6NkE1RjVGRUUiLCJ2aXNpdG9yX2lkIjoiNjY3MTk2NzE5NDg1NDY3ODUxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fcd0bb2fc6b8338befaa073876df49618598cc45d6987f0558d8e30c9c057ac0 |
| hovercard-subject-tag | pull_request:466227513 |
| 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/guest-li/algorithm014-algorithm014/1/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/94ae5dff3b8594b275e63746322ca02e8cb15a2d4c51b80e72b4cf53765a46a5/guest-li/algorithm014-algorithm014/pull/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94ae5dff3b8594b275e63746322ca02e8cb15a2d4c51b80e72b4cf53765a46a5/guest-li/algorithm014-algorithm014/pull/1 |
| og:image:alt | 数组可以直接开到int[] res = new int[n + 3];此外,不需要通过res[n-1]的方式访问第n个元素,直接res[n]即可。 开辟长度为n的数组存储中间结果不是最优的。空间复杂度可进一步优化为O(1)。 md的代码格式,可以在代码段的开头和结尾加上``` |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shardzhang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a0797c11799dbfd7df57fa3de31c7ea3a4c4bd055eb1a0427a5cde1d4d7ba3f |
| turbo-cache-control | no-cache |
| go-import | github.com/guest-li/algorithm014-algorithm014 git https://github.com/guest-li/algorithm014-algorithm014.git |
| octolytics-dimension-user_id | 5926672 |
| octolytics-dimension-user_login | guest-li |
| octolytics-dimension-repository_id | 286430979 |
| octolytics-dimension-repository_nwo | guest-li/algorithm014-algorithm014 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 286364746 |
| octolytics-dimension-repository_parent_nwo | algorithm014-algorithm014/algorithm014-algorithm014 |
| octolytics-dimension-repository_network_root_id | 286364746 |
| octolytics-dimension-repository_network_root_nwo | algorithm014-algorithm014/algorithm014-algorithm014 |
| 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 | b099d96da147aea31036cd16b2fba0083a6defe4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width