Aakash_DD's blog

By Aakash_DD, history, 5 years ago, In English

I was solving some problems from contests but can't figure out how to solve this problem in the given time constraints.

My attempts: 1. I was making the brute force solution O(n^2). 2. I thought for Graphs and Connected components size but I m not able to do under given constraints.

Full text and comments »

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