Last active
December 12, 2016 15:43
-
-
Save valsaven/c57a467fdaa7e9ebcbda4068cc539b08 to your computer and use it in GitHub Desktop.
Hackerrank JavaScript Input
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
let _input = ""; | |
process.stdin.resume(); | |
process.stdin.setEncoding("ascii"); | |
process.stdin.on("data", (input) => _input += input); | |
process.stdin.on("end", () => processData(_input)); | |
function processData(input) { | |
// Array with input values | |
const stdin = input.split("\n"); | |
/* | |
Your code | |
*/ | |
return console.log(/* result */); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment