Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4e9ff71

Browse files
添加0062不同路径C#版本
1 parent 44c365a commit 4e9ff71

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎problems/0062.不同路径.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,5 +452,25 @@ object Solution {
452452
}
453453
```
454454

455+
### c#
456+
457+
```c#
458+
public class Solution
459+
{
460+
public int UniquePaths(int m, int n)
461+
{
462+
int[] dp = new int[n];
463+
for (int i = 0; i < n; i++)
464+
dp[i] = 1;
465+
for (int i = 1; i < m; i++)
466+
for (int j = 1; j < n; j++)
467+
dp[j] += dp[j - 1];
468+
return dp[n - 1];
469+
}
470+
}
471+
```
472+
473+
474+
455475
-----------------------
456476
<div align="center"><img src=https://code-thinking.cdn.bcebos.com/pics/01二维码一.jpg width=500> </img></div>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /