Skip to content

Instantly share code, notes, and snippets.

@arnabdas
Created January 23, 2017 11:50
Show Gist options
  • Save arnabdas/020575f1596af386fde97013fc107392 to your computer and use it in GitHub Desktop.
Save arnabdas/020575f1596af386fde97013fc107392 to your computer and use it in GitHub Desktop.
JavaScript code template for Hackerrank
process.stdin.resume();
process.stdin.setEncoding('ascii');
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
input_stdin += data;
});
process.stdin.on('end', function () {
input_stdin_array = input_stdin.split("\n");
main();
});
function readLine() {
return input_stdin_array[input_currentline++];
}
/////////////// ignore above this line ////////////////////
function main() {
var n = parseInt(readLine());
c = readLine().split(' ');
c = c.map(Number);
var matchedPair = {};
for (var i = 0; i < n ; i++) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment