Skip to content

Instantly share code, notes, and snippets.

@valsaven
valsaven / input.js
Last active December 12, 2016 15:43
Hackerrank JavaScript Input
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");
@valsaven
valsaven / hello_world.py
Created November 15, 2016 09:24
Just another "Hello, World!" with Python :)
#!/usr/bin/python
s = 'deowhlr'
print('{}'.format(s[4].upper()) + '{}{}{}{}'.format(s[1], s[5],
s[5], s[2]) + ', ' + '%s%s%s%s%s' % (s[3].upper(), s[2], s[6], s[5],
s[0]) + '!')