Comments

The answer is (n-min(l+1,n-r)) not max(l+1,r).Here we are opting for min of prefix and suffix so that we get max subsequence of the array. If u still didn't get it try various scenarios which is the only way to answer ur question.

The sentence loosely translates to finding the first and last numbers which are not divisble by x in the array and then find the minimum between those numbers and subtract them from array size which gives us our subarray of largest size.

Missed this challenge

No , I guess for a case n0=(1..k) , n1=0 & n2=(1..k) we can't find any solution I guess. Please correct me If I am worng.

Good one.

Guys I am a noob I need help with this problem 1352F Brinary String construction. ihave read the editorial I am trying a new approach need some help with that . Here's the solution : https://mirror.codeforces.com/contest/1352/submission/80051458

Hope you would help me out.

Gracias Lord_Thunder.

On lord_thunderHelp with the Approach, 6 years ago
0

Auto comment: topic has been updated by lord_thunder (previous revision, new revision, compare).

On ChaosAngelThoughts on Div4, 6 years ago
+3

It'll really help beginners.

Happy Fixing u are the best.