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 25c03cf

Browse files
Merge pull request #286 from stainedcreek/patch-1
Update Time_Complexity.md
2 parents 3200de1 + b878af0 commit 25c03cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎website/content/ChapterOne/Time_Complexity.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void hello (int n){
4444
4545
```c
4646
bool isPrime (int n){
47+
if (num <= 1) return false;
4748
for( int x = 2 ; x * x <= n ; x ++ )
4849
if( n % x == 0 )
4950
return false;

0 commit comments

Comments
(0)

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