Movatterモバイル変換


[0]ホーム

URL:


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

Commit9e27d16

Browse files
committed
changed the sentence structure
1 parentb7d7112 commit9e27d16

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎Bit-Manipulation/SetBit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* bit binary representations of the number and
88
* returns a number after comparing each bit.
99
*
10-
* 0 | 0 -> 0
10+
* 0 | 0 -> 0
1111
* 0 | 1 -> 1
1212
* 1 | 0 -> 1
1313
* 1 | 1 -> 1

‎Maths/FindLcm.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ const findLcm = (num1, num2) => {
3131

3232
while(true){
3333
if(lcm%num1===0&&lcm%num2===0)break
34-
lcm+=maxNum
34+
if(num1>num2){
35+
maxNum=num1
36+
}else{
37+
maxNum=num2
38+
}
3539
}
3640
returnlcm
3741
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp