Skip to content

Instantly share code, notes, and snippets.

View shahabvshahabi1996's full-sized avatar
🎯
Focusing

Alireza Shahabi shahabvshahabi1996

🎯
Focusing
View GitHub Profile
@pllearns
pllearns / adjacentElementsProduct.js
Last active December 10, 2020 06:31
CodeFights Solutions
function adjacentElementsProduct(inputArray) {
var numbers = -100
for (var i = 0; i < inputArray.length; i++) {
if (inputArray[i] * inputArray[i + 1] >= numbers) {
numbers = inputArray[i] * inputArray[i + 1]
}
}
return numbers
}