Skip to content

Commit

Permalink
Merge pull request CyC2018#467 from NKUCodingCat/patch-1
Browse files Browse the repository at this point in the history
Update 剑指 offer 题解.md
  • Loading branch information
CyC2018 authored Nov 24, 2018
2 parents 4d21001 + c39da28 commit 66ab4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/剑指 offer 题解.md
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ private char[][] buildMatrix(char[] array) {

地上有一个 m 行和 n 列的方格。一个机器人从坐标 (0, 0) 的格子开始移动,每一次只能向左右上下四个方向移动一格,但是不能进入行坐标和列坐标的数位之和大于 k 的格子。

例如,当 k 为 18 时,机器人能够进入方格 (35,37),因为 3+5+3+7=18。但是,它不能进入方格 (35,37),因为 3+5+3+8=19。请问该机器人能够达到多少个格子?
例如,当 k 为 18 时,机器人能够进入方格 (35,37),因为 3+5+3+7=18。但是,它不能进入方格 (35,38),因为 3+5+3+8=19。请问该机器人能够达到多少个格子?

## 解题思路

Expand Down

0 comments on commit 66ab4bd

Please sign in to comment.