Flvx's blog

By Flvx, history, 6 months ago, In English

I tried accessing clist.by but it gives a a 504 error. Is this the same for others? How long will the site be down for?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Flvx, history, 7 months ago, In English

Problem Statement: this Is there a way to prove that if we are not able to connect the vertices to 1 in the greedy order that has been suggested, then there exists no other answer?

Thanks.

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it

By Flvx, history, 14 months ago, In English

This video(copied with time stamp) presents an approach to solving problem 1665C and I understood the broad approach but I am not able to understand that if we have the sum of left over vertices after considering infection is greater than the number of injection operations remaining we directly say that x is not possible, but shouldn't we also consider the fact that even if we have less injections left, they would all still spread in parallel at any given time?

For example lets say that x = 3 and the sum of count values is 4. And this value comes from two sets comprising of two sibling nodes. Then it is possible to infect all of them in 3 seconds, because once we infect one of them the infection spreads to the sibling. So this is why I have this doubt, maybe I might have misunderstood something in which case I would really appreciate any help

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Flvx, history, 14 months ago, In English

This solution fails the second testcase and I don't understand why since the logic that I have used here seems to be fine. Any help would be appreciated.

Full text and comments »

  • Vote: I like it
  • -3
  • Vote: I do not like it

By Flvx, history, 16 months ago, In English

Can someone tell me why this code is giving WA. I have tried coming up with counter testcases but it passes all of them. Thanks.

Full text and comments »

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

By Flvx, history, 17 months ago, In English

Hello, I wanted to know why the this submission was giving TLE. Thanks :)

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Flvx, history, 20 months ago, In English

The problem in question is Hamiltonian wall and I wrote a solution to this that works, but I suspect that it is the wrong solution. My solution is this. The reason I suspect that my solution is incorrect is because, if in the DFS function I change the order of the two loops, I get the wrong answer(when that should not be happening). I would really appreciate if anybody could point out what is wrong with DFS function.

Thanks, if you need any clarification regarding some of the terms in my template or regarding my approach, feel free to comment down below EDIT: I removed the lengthy template

Full text and comments »

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

By Flvx, history, 21 month(s) ago, In English

This editorial problem E1, Erase and Extend, can someone please give a logical explanation as to how the optimal string is supposed to be a repetition of a prefix? The editorial takes a lot of leaps and the comments do not have any explanation. Thanks. (Ask me for further clarification if needed)

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Flvx, history, 22 months ago, In English

For problem this, the editorial suggests a naive way in which we break the chain and linearly kill all the monsters(then they present an optimization based on this), how do we know that this is the optimal way? Why can't I first kill monsters from one segment and then once the cascading effect stops, I jump to another monster which(say) has the highest b[i]/a[i] ratio? I need help in understanding this. Thanks in advance. (You can ask for further clarification from me if required)

Full text and comments »

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

By Flvx, history, 22 months ago, In English

The problem in question is problem and I have solved this using another approach, but I want to know why this two pointer approach does not work. Thanks

Full text and comments »

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

By Flvx, history, 23 months ago, In English

The following code despite being asymptotically fine, is still giving TLE on the 31st test case. I have tried everything, but I am not able to optimize this code further. I need inputs from more coders, any help would be appreciated. The problem link is this and my attempt is this (Incase the code is not readable, inform me I will format and edit in the code)

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it