Skip to content

Commit

Permalink
Simplify Fibonacci example
Browse files Browse the repository at this point in the history
  • Loading branch information
azubrytski-dev committed Oct 25, 2022
1 parent 205aa55 commit 9b69460
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 1 addition & 9 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,7 @@ public long Fibonacci(int n)
```csharp
public long Fibonacci(int n)
{
if (n == 0)
{
return 0;
}

if (n == 1)
{
return 1;
}
if (n == 0 || n == 1) return n;

if (n > 50)
{
Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,7 @@ public long Fibonacci(int n)
```csharp
public long Fibonacci(int n)
{
if (n == 0)
{
return 0;
}

if (n == 1)
{
return 1;
}
if (n == 0 || n == 1) return n;

if (n > 50)
{
Expand Down

0 comments on commit 9b69460

Please sign in to comment.