jay_jayjay's blog

By jay_jayjay, history, 13 months ago, In English

As the official editorial is promised to come out later, I will write an unofficial editorial for now. Some of the solutions are from my teammate tcmmichaelb139 orz. Contest: https://www.hackerrank.com/indigo-coding-competition

Easy

These problems are quite trivial, so I will only provide solutions:

P1
P2
P3
P4

Medium

P5
Code
P6
Code
P7
Code
P8
Code

Hard

P9
Code
P10
Code
  • Vote: I like it
  • +25
  • Vote: I do not like it

»
13 months ago, # |
  Vote: I like it 0 Vote: I do not like it

:o slay

»
13 months ago, # |
  Vote: I like it +29 Vote: I do not like it

I wrote my own editorial as well, which builds on your observations while making everything more detailed.

It can be found here

Shout out to Bakry for helping me understand the approach behind problem 9.