Skip to content

Instantly share code, notes, and snippets.

View theabbie's full-sized avatar
❤️
Playing With Life Since 2002

Abhishek Choudhary theabbie

❤️
Playing With Life Since 2002
View GitHub Profile

Keybase proof

I hereby claim:

  • I am theabbie on github.
  • I am theabbie (https://keybase.io/theabbie) on keybase.
  • I have a public key ASCFVfM5X3QlT3kzUtRjDAHPmDO2gjhQde0Kw3kUQWL-8Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am theabbie on github.

  • I am theabbie (https://keybase.io/theabbie) on keybase.

  • I have a public key ASC48kHwNzQ0ZXr8Y8ZBzNSMJdAcI1uhhT32oKaQ8exCeAo

var fs = require("fs");
var scores = {};
var days;
var libs = [];
var lib_app = [];
var file = 'f_libraries_of_the_world.txt';
fs.readFile(file,'utf8', function(err, data) {
var lines = data.split("\n");
var fs = require("fs");
var file = 'b_dream.txt';
fs.readFile(file,'utf8', function(err, data) {
var w = parseInt(data.split("\n")[0].split(" ")[0]);
var h = parseInt(data.split("\n")[0].split(" ")[1]);
var devlen = parseInt(data.split("\n")[h+1]);
var devs = data.split("\n").slice(h+2,h+2+devlen).map(function(x) {return {"company": x.split(" ")[0],"bonus": parseInt(x.split(" ")[1]),"skills": x.split(" ").splice(3),"dev": true}});
var pmlen = parseInt(data.split("\n")[h+2+devlen]);
var pms = data.split("\n").slice(h+3+devlen,h+3+devlen+pmlen).map(function(x) {return {"company": x.split(" ")[0],"bonus": parseInt(x.split(" ")[1]),"dev": false}})
var input = `4
123411
112111
4
220`;
function processData(input) {
var lines = input.split("\n");
var t = parseInt(input[0]);
for (l=1; l<=t; l++) {
function processData(input) {
var i = 1;
var lines = input.split("\n");
var t = parseInt(lines[0]);
for (l=0; l<t; l++) {
var n = parseInt(lines[i]);
i++;
var mat = lines.slice(i,i+n).map((m,v)=>[...m.split(" ").map(s=>parseInt(s)),v]);
function processData(input) {
var lines = input.split("\n");
var t = parseInt(input[0]);
for (l=1; l<=t; l++) {
var str = lines[l].split("").map(m=>parseInt(m));
var ans = "";
ans += "(".repeat(str[0]);
for (i=0; i<str.length-1; i++) {
@theabbie
theabbie / theabbie.md
Last active July 27, 2020 20:17
a pseudo-introvert, a web developer, and a maker