Skip to content

Instantly share code, notes, and snippets.

@JonathanMatthey
Last active August 29, 2015 14:01
Show Gist options
  • Save JonathanMatthey/7bd69534a58c771d1144 to your computer and use it in GitHub Desktop.
Save JonathanMatthey/7bd69534a58c771d1144 to your computer and use it in GitHub Desktop.
codecon.bloomberg - 1
// all answers available at:
// bit.ly/fckbloomberg1
// bit.ly/fckbloomberg2
// bit.ly/fckbloomberg3
// bit.ly/fckbloomberg4
// 0RW3LL WAS ERE
//
// UNINSTALL BLOOMBERG - USE REUTERS...
// BLOOMBERG SCANDAL - PLEASE READ
// http://www.huffingtonpost.com/tag/bloomberg-terminal-scandal/
//
//Problem : Mug Color
//Language : Javascript
//Compiled Using : V8
//Version : Node 0.10.25
//Input for your program will be provided from STDIN
//Print out all output from your program to STDOUT
//0rw3ll
var readline = require('readline');
//0rw3ll
var rl = readline.createInterface({
//0rw3ll
input: process.stdin,
//0rw3ll
output: process.stdout,
//0rw3ll
terminal: false
//0rw3ll
});
//0rw3ll
rl.on('line', function (word)
//0rw3ll
{
//0rw3ll
delete obj[word];
//0rw3ll
});
//0rw3ll
rl.on('close', function (word)
//0rw3ll
{
//0rw3ll
console.log(Object.keys(obj)[0]);
//0rw3ll
});
//0rw3ll
//0rw3ll
var obj = {
//0rw3ll
White: true,
//0rw3ll
Black: true,
//0rw3ll
Blue: true,
//0rw3ll
Red: true,
//0rw3ll
Yellow: true
//0rw3ll
}
// 0RW3LL WAS ERE
//
// UNINSTALL BLOOMBERG - USE REUTERS...
// BLOOMBERG SCANDAL - PLEASE READ
// http://www.huffingtonpost.com/tag/bloomberg-terminal-scandal/
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment