Using Javascript to read input in Google's Kickstart and Codejam

preview_player
Показать описание
An example of reading input from Codejam or Kickstart using Javascript. It's important that you know what the input looks like and that you recognize how Javascript will deal with the data types you import by default

Link to Code on Github:

Link to Question:

Рекомендации по теме
Комментарии
Автор

You really made my day its really helpfull i was trying to find a tutorial on how to use js in google kickstart and then i found you

abhaychauhan
Автор

Thanks man! I was not sure how to get it to read googles input but only from a file, this really helped.

patrickdwyer
Автор

Thanks man.
I hate it when I can solve the problem but can't read in the input properly 😅
No more of that for me.

ironplank
Автор

I cant thank you enough! This made my day!

skewd
Автор

How can this not be the official instruction for readline in js on codejam...

by
Автор

Hey, nice and helpful video!

I have a question:
sum+= +arr[k];
what is the purpose of + sign before arr[k] ?

LukasKairys
Автор

why the path is 0 in fs.readFileSync(path[, options]) function ?
how you get to know which path google is using ?
is the input during submission is via commandline or text input ?

itspravas
Автор

Do you use JS on other competitive programming sites like codeforces or some of the other ones?

rakimcraig
welcome to shbcf.ru