Skip to content

Commit 3fe17fa

Browse files
committed
fix: update
1 parent 5223b63 commit 3fe17fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

solution/0200-0299/0233.Number of Digit One/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ $$
7474

7575
函数的执行过程如下:
7676

77-
如果 $i$ 超过了数字 $n$ 的长度,说明搜索结束,直接返回 $cnt$。如果 $\textit{limit}$ 为真,$up$ 为当前数字的第 $i$ 位,否则 $up = 9$。接下来,我们遍历 $j$ 从 $0$ 到 $up$,对于每一个 $j$:
77+
如果 $i$ 超过了数字 $n$ 的长度,说明搜索结束,直接返回 $cnt$。如果 $\textit{limit}$ 为真,那么 $up$ 为当前数字的第 $i$ 位,否则 $up = 9$。接下来,我们遍历 $j$ 从 $0$ 到 $up$,对于每一个 $j$:
7878

7979
- 如果 $j$ 等于 $1$,我们将 $cnt$ 加一。
80-
- 递归调用 $\textit{dfs}(i + 1, \textit{cnt}, \textit{limit} \&\& j == up)$。
80+
- 递归调用 $\textit{dfs}(i + 1, \textit{cnt}, \textit{limit} \land j = up)$。
8181

8282
答案为 $\textit{dfs}(0, 0, \text{True})$。
8383

solution/0200-0299/0233.Number of Digit One/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The function executes as follows:
7575
If $i$ exceeds the length of the number $n$, it means the search is over, directly return $cnt$. If $\textit{limit}$ is true, $up$ is the $i$-th digit of the current number. Otherwise, $up = 9$. Next, we iterate $j$ from $0$ to $up$. For each $j$:
7676

7777
- If $j$ equals $1$, we increment $cnt$ by one.
78-
- Recursively call $\textit{dfs}(i + 1, \textit{cnt}, \textit{limit} \&\& j == up)$.
78+
- Recursively call $\textit{dfs}(i + 1, \textit{cnt}, \textit{limit} \land j = up)$.
7979

8080
The answer is $\textit{dfs}(0, 0, \text{True})$.
8181

0 commit comments

Comments
 (0)