Skip to content

Instantly share code, notes, and snippets.

View 4skinSkywalker's full-sized avatar
♥️
Stay strong guys!

Fred's GitHub 4skinSkywalker

♥️
Stay strong guys!
View GitHub Profile
@4skinSkywalker
4skinSkywalker / scaleBalancing.js
Created February 23, 2019 19:51
The third hardest challenge listed in the “easy” section of Coderbyte.
function scaleBalancing(plates, weights) {
weights.sort((a, b) => a - b)
let [a, b] = plates
if (a === b) {
return 'already balanced'
}
@4skinSkywalker
4skinSkywalker / vowelSquare.js
Created February 23, 2019 19:46
The second hardest challenge listed in the “easy” section of Coderbyte.
function vowelSquare(matrix) {
let vowels = {
a: 1,
e: 1,
i: 1,
o: 1,
u: 1
}
@4skinSkywalker
4skinSkywalker / questionMarks.js
Created February 23, 2019 19:33
"...challenge where users struggled most to get a perfect score and spent the longest time solving.."
function questionsMarks(string) {
let number = pair = count = 0
for (let char of string) {
if ( !isNaN(char) ) {
if (number && number + +char === 10) {