Title: 字节&leetcode746:使用最小花费爬楼梯 · Issue #91 · sisterAn/JavaScript-Algorithms · GitHub
Open Graph Title: 字节&leetcode746:使用最小花费爬楼梯 · Issue #91 · sisterAn/JavaScript-Algorithms
X Title: 字节&leetcode746:使用最小花费爬楼梯 · Issue #91 · sisterAn/JavaScript-Algorithms
Description: 数组的每个索引作为一个阶梯,第 i 个阶梯对应着一个非负数的体力花费值 cost[i] (索引从0开始)。 每当你爬上一个阶梯你都要花费对应的体力花费值,然后你可以选择继续爬一个阶梯或者爬两个阶梯。 您需要找到达到楼层顶部的最低花费。在开始时,你可以选择从索引为 0 或 1 的元素作为初始阶梯。 示例 1: 输入: cost = [10, 15, 20] 输出: 15 解释: 最低花费是从cost[1]开始,然后走两步即可到阶梯顶,一共花费15。 示例 2: 输入: c...
Open Graph Description: 数组的每个索引作为一个阶梯,第 i 个阶梯对应着一个非负数的体力花费值 cost[i] (索引从0开始)。 每当你爬上一个阶梯你都要花费对应的体力花费值,然后你可以选择继续爬一个阶梯或者爬两个阶梯。 您需要找到达到楼层顶部的最低花费。在开始时,你可以选择从索引为 0 或 1 的元素作为初始阶梯。 示例 1: 输入: cost = [10, 15, 20] 输出: 15 解释: 最低花费是从c...
X Description: 数组的每个索引作为一个阶梯,第 i 个阶梯对应着一个非负数的体力花费值 cost[i] (索引从0开始)。 每当你爬上一个阶梯你都要花费对应的体力花费值,然后你可以选择继续爬一个阶梯或者爬两个阶梯。 您需要找到达到楼层顶部的最低花费。在开始时,你可以选择从索引为 0 或 1 的元素作为初始阶梯。 示例 1: 输入: cost = [10, 15, 20] 输出: 15 解释: 最低花费是从c...
Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/91
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"字节\u0026leetcode746:使用最小花费爬楼梯","articleBody":"数组的每个索引作为一个阶梯,第 `i` 个阶梯对应着一个非负数的体力花费值 `cost[i]` (索引从0开始)。\r\n\r\n每当你爬上一个阶梯你都要花费对应的体力花费值,然后你可以选择继续爬一个阶梯或者爬两个阶梯。\r\n\r\n您需要找到达到楼层顶部的最低花费。在开始时,你可以选择从索引为 0 或 1 的元素作为初始阶梯。\r\n\r\n**示例 1:**\r\n\r\n```js\r\n输入: cost = [10, 15, 20]\r\n输出: 15\r\n解释: 最低花费是从cost[1]开始,然后走两步即可到阶梯顶,一共花费15。\r\n```\r\n\r\n**示例 2:**\r\n\r\n```js\r\n输入: cost = [1, 100, 1, 1, 1, 100, 1, 1, 100, 1]\r\n输出: 6\r\n解释: 最低花费方式是从cost[0]开始,逐个经过那些1,跳过cost[3],一共花费6。\r\n```\r\n\r\n**注意:**\r\n\r\n- `cost` 的长度将会在 `[2, 1000]` 。\r\n- 每一个 `cost[i]` 将会是一个Integer类型,范围为 `[0, 999]` 。\r\n\r\n附赠leetcode地址:[leetcode](https://leetcode-cn.com/problems/min-cost-climbing-stairs/solution/zi-jie-leetcode746shi-yong-zui-xiao-hua-fei-pa-lou/)","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2020-07-29T16:07:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/91/JavaScript-Algorithms/issues/91"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:237b8c23-4dba-7ebd-fdda-07187cf4057a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE18:2BBCB0:1987084:22049DF:696AEE50 |
| html-safe-nonce | 5d4b4b9b70f40aaad78740b7a392dccd85d6d801a602ac41024b20b2bb6a0626 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTE4OjJCQkNCMDoxOTg3MDg0OjIyMDQ5REY6Njk2QUVFNTAiLCJ2aXNpdG9yX2lkIjoiMjk0OTY0NDk3MjEzMTU0NDY1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d8758fc0b8b3aa76b300bf3a87ec2dd6e1a6933f290a2a0fd00c780664517f35 |
| hovercard-subject-tag | issue:667962365 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/sisterAn/JavaScript-Algorithms/91/issue_layout |
| twitter:image | https://opengraph.githubassets.com/426419cd87772ce6ff2880a82d0dc7df7fa381466b1526450c9b2cc4cb92c253/sisterAn/JavaScript-Algorithms/issues/91 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/426419cd87772ce6ff2880a82d0dc7df7fa381466b1526450c9b2cc4cb92c253/sisterAn/JavaScript-Algorithms/issues/91 |
| og:image:alt | 数组的每个索引作为一个阶梯,第 i 个阶梯对应着一个非负数的体力花费值 cost[i] (索引从0开始)。 每当你爬上一个阶梯你都要花费对应的体力花费值,然后你可以选择继续爬一个阶梯或者爬两个阶梯。 您需要找到达到楼层顶部的最低花费。在开始时,你可以选择从索引为 0 或 1 的元素作为初始阶梯。 示例 1: 输入: cost = [10, 15, 20] 输出: 15 解释: 最低花费是从c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sisterAn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/sisterAn/JavaScript-Algorithms git https://github.com/sisterAn/JavaScript-Algorithms.git |
| octolytics-dimension-user_id | 19721451 |
| octolytics-dimension-user_login | sisterAn |
| octolytics-dimension-repository_id | 252061924 |
| octolytics-dimension-repository_nwo | sisterAn/JavaScript-Algorithms |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 252061924 |
| octolytics-dimension-repository_network_root_nwo | sisterAn/JavaScript-Algorithms |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width