Dominater069's blog

By Dominater069, 2 months ago, In English

We invite you to participate in CodeChef’s Starters 162, this Wednesday, 27th November, rated upto 5 stars (i.e. for users with rating < 2200).

Time: 8:00 PM — 10:00 PM IST

Joining us on the problem setting panel are:

Written editorials will be available for all on discuss.codechef.com. Pro users can find the editorials directly on the problem pages after the contest. The video editorials of the problems will be available only to Pro users.

Also, if you have some original and engaging problem ideas, and you’re interested in them being used in CodeChef's contests, you can share them here. Hope to see you participating.

Good Luck!


Problem Distribution :

  • Div1 : 5 problems
  • Div2 : 6 problems
  • Div3 : 7 problems
  • Div4 : 8 problems

Congratulations to the Top 5!

Ranking :

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

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

Reminder: The contest will start in an hour.

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

Can anyone help me to find why my code gives TLE on the question EMPTY THE STRING.

Code
  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    o(n^2logn) in worst case and maybe infinite loop too if while(true) doesn't work properly

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    just simulate man this is just overkill

    if you have found A then check if there is any B if yes then extend it else start a new one and same for B

    • »
      »
      »
      2 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I know about that solution too but just curious to see why this does not work

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

Nice Round , I've got first AC on B , Being top 1 for 15 mins , and ended up being 5th.

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

Thanks for the problems. I personally enjoyed going down the labyrinth of complexity with And Sort but discovering the beautiful solution was really satisfying.