Skip to content

Fixed a wrong sentence structure #952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 27, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Bit-Manipulation/SetBit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* bit binary representations of the number and
* returns a number after comparing each bit.
*
* 0 | 0 -> 0
* 0 | 0 -> 0
* 0 | 1 -> 1
* 1 | 0 -> 1
* 1 | 1 -> 1
Expand All @@ -20,7 +20,7 @@
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_OR
*/

/**
/*
* @param {number} number
* @param {number} bitPosition - zero based.
* @return {number}
Expand Down
6 changes: 1 addition & 5 deletions Maths/FindLcm.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ const findLcm = (num1, num2) => {
let maxNum
let lcm
// Check to see whether num1 or num2 is larger.
if (num1 > num2) {
maxNum = num1
} else {
maxNum = num2
}
maxNum = Math.max(num1, num2)
lcm = maxNum

while (true) {
Expand Down
2 changes: 1 addition & 1 deletion Maths/LeapYear.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* The logic behind the leap year is-
* 1. If the year is divisible by 400 then it is a leap year.
* 2. If it is not divisible by 400 but divisible by 100 then it is not a leap year.
* 3. If the year is not divisible by 400 but not divisible by 100 and divisible by 4 then a leap year.
* 3. If the year is not divisible by both 400 and 100 but divisible by 4 then a leap year.
* 4. Other cases except the describing ones are not a leap year.
*
* @param {number} year
Expand Down