This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function scaleBalancing(plates, weights) { | |
| weights.sort((a, b) => a - b) | |
| let [a, b] = plates | |
| if (a === b) { | |
| return 'already balanced' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function vowelSquare(matrix) { | |
| let vowels = { | |
| a: 1, | |
| e: 1, | |
| i: 1, | |
| o: 1, | |
| u: 1 | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function questionsMarks(string) { | |
| let number = pair = count = 0 | |
| for (let char of string) { | |
| if ( !isNaN(char) ) { | |
| if (number && number + +char === 10) { | |
NewerOlder