sprkgoyal's blog

By sprkgoyal, history, 4 years ago, In English

NITS Local #30

Maximize the XOR

Author: amit_dwivedi

Tutorial
Solution

GS more like BS(Easy version)

Author: amit_dwivedi

Tutorial

Is This Kadane?

Author: amit_dwivedi

Tutorial
Solution

GS more like BS(Hard version)

Author: amit_dwivedi

Tutorial
Proof
Solution

Queue in UP

Author: amit_dwivedi

Tutorial
Solution

Forest vs Lawn

Author: sprkgoyal

Tutorial
Solution

So You know LIS, huh?

Author: amit_dwivedi

Tutorial
Solution

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it

By sprkgoyal, 4 years ago, In English

(This tutorial is only for Windows Users)

Many of you must have searched, "How to run Kotlin in Sublime Text 3?", but never found anything relevant.

So, here is the solution.

https://github.com/sprkgoyal/Sublime-Builds/blob/master/Kotlin.sublime-build

Go to this link and save that build as a new build system in your sublime text.

(Open Sublime Text -> Tools -> Build System -> New Build System, Name the file as Kotlin.sublime-build)

Now, if you don't have Kotlin compiler. First Download Java from here.

Then download PBox and then in the command prompt type the command "pbox install kotlin" (without quotes)

Right click on My Computer Icon -> Properties -> Change Settings -> Advanced -> Environment Variables.

Now Copy "C:\Programs\kotlin\bin" (without quotes) (or you can find kotlin compiler downloaded before, and copy the path of bin folder)

Under System Variables, find Path. Then double click on Path -> New -> paste the path of bin folder.

Your Sublime is ready to compile and run Kotlin code.

PS1: Since there is no official support for Kotlin in Sublime Text, you may not be able to see coloured text in the editor. Other than that, everything will work fine.

PS2: To use this build, first create two files "inputf.in" and "outputf.in" in the same folder where you are going to save your codes. "inputf.in" file is used to read inputs in your code and your code prints the output in "outputf.in" file. Note: Put your input in "inputf.in" before compiling the file.

Full text and comments »

  • Vote: I like it
  • +45
  • Vote: I do not like it

By sprkgoyal, 4 years ago, In English

NITS Local #28

For the first time, we are posting an official editorial of the contest on Codeforces itself. We hope you like it.

Ugly Geometry

Author: invictus_123

Tutorial
Solution

Make Equal

Author: sprkgoyal

Tutorial
Solution O(nlogn)
Solution O(n)

Maximising Flow (Easy Version)

Author: invictus_123

Tutorial
Solution

Maximising Flow (Hard Version)

Author: invictus_123

Tutorial
Solution

Bruno Loves Cat

Author: sprkgoyal

Tutorial
Solution

Checker for Maximising MEX

Author: invictus_123

Backstory
Tutorial
Solution

Difference in Power

Author: invictus_123

Tutorial
Solution

Full text and comments »

  • Vote: I like it
  • +20
  • Vote: I do not like it