jay_jayjay's blog

By jay_jayjay, history, 4 weeks ago, In English

Hello, codeforces! Could someone try to pass my solution in 299702131? The idea is to iterate over n, then k, then run Dial's algorithm (for widest path) over the graph, then skip an edge to make the initial distances for k+1.

I'm reasonably sure the approach is O(n^2m) (confirmed by a friend). The code runs in 600ms on a random case on my laptop. Can someone constant optimize it for me, or tell me why it doesn't pass? Thanks!

Full text and comments »

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

By jay_jayjay, history, 22 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

Full text and comments »

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