Dominater069's blog

By Dominater069, history, 3 months ago, In English

We invite you to participate in CodeChef’s Starters 226, this Wednesday, 18th February, rated for 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!

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

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

Contest starts in 30 minutes.

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

Were the test cases on "Good Array" weak because my 2 states dp solution passed using map. Not sure if due to some property we don't visit all states or just weak test case.

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

can anyone tell why my approach is incorrect for problem At least one
my approach was to calculate contibution of each $$$gap (1 \lt = d \lt n)$$$ by counting no. of subsequence having first $$$gap == d$$$ between $$$i$$$ and $$$i + d$$$

code
»
3 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i think there is error in 'minimum distance' typing. no mention of input k