IceKnight1093's blog

By IceKnight1093, history, 12 months ago, In English

We invite you to participate in CodeChef’s Starters 117, this Wednesday, 17th January, rated for till 5-Stars (ie. 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!

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

| Write comment?
»
12 months ago, # |
  Vote: I like it +13 Vote: I do not like it

EQUAL2 and A and B are very similar. Other questions were good though.Thanks for the contest.

»
12 months ago, # |
  Vote: I like it +10 Vote: I do not like it

Thanks for yet Another observe the pattern , find corner cases and code it using if else if else :D !

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

How to implement sting strings?

  • »
    »
    12 months ago, # ^ |
    Rev. 2   Vote: I like it +6 Vote: I do not like it

    Just simulate what was written in the question. Each time someone plays at least 1 character will get deleted, so there will be at most n games for each string.

    I used a stack to simulate the game. You can check the code below

    Spoiler
»
12 months ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

It seems that the test-cases for the STINGY ARRAYS Question are very weak. O(N^2) brute force solutions ACs all the test cases.

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

Can anyone please have a look at my code for today's CodeChef Stingy Arrays problem.
I tried doing stress testing, but couldn't find the failing test case; maybe its an edge case.

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

    explain urs approch .

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

    1

    30

    2 4 4 4 3 3 3 4 4 4 5 5 4 4 4 2 4 4 4 3 3 3 4 4 4 5 5 4 4 4