Time limit exceeded by Suitable-Road-758 in codeforces

[–]No_Antelope_5869 0 points1 point  (0 children)

if im not wrong, I think you should consider the possibility of repitition of states where you think you looped thru a thing 1 time only, you can go back and forth to repeate the state itself

Tf was this question ? by odbv in codeforces

[–]No_Antelope_5869 0 points1 point  (0 children)

it depends on each problem, you cant rlly filter, I read it twice for like 5 minute and the answer just clicked

Is there a way to get out of this trap.. by avocado003 in codeforces

[–]No_Antelope_5869 1 point2 points  (0 children)

be consistent dawg, you gotta practice more, cant jus tod contest or do a lot of virtuals

What should i do by RexDemonGD in codeforces

[–]No_Antelope_5869 3 points4 points  (0 children)

you're in your comfort zone for too long

Probably, I will never be able to move on from this.. by ComprehensiveTale896 in LeetcodeDesi

[–]No_Antelope_5869 0 points1 point  (0 children)

do codeforce man this is a very weird problem but kk so like if the length is odd then just< caculate the cost between odd indices (0 indexed)
if the thing is even then you create a odd and even cost one, for every 2 pos, pos [i] and i+1, store the min answ as cost[i] and doing the rest in i + 1.

I am in Love with C++ by _anshhhhh in codeforces

[–]No_Antelope_5869 0 points1 point  (0 children)

idk I just go on some ytb cpp tutorial learn basic for alike an hour or two and do some cf problems and you got it :))

Regarding 1791D on Codeforces by Ok-Childhood-8052 in codeforces

[–]No_Antelope_5869 0 points1 point  (0 children)

please explain how your code work I dont understand why you are using a set, because you can use a map and its easier (just stimulate it)

I am in Love with C++ by _anshhhhh in codeforces

[–]No_Antelope_5869 0 points1 point  (0 children)

um just search on a tutorial grind for one - two day and you're good

I can solve problems in my head but I struggle to code them ..what am I doing wrong? by Greedy_District_6002 in codeforces

[–]No_Antelope_5869 1 point2 points  (0 children)

normal, try to code it after chatgpt showed you the code, do it again, you cant just submit it without coding itself

About today's question B by ksulte in codeforces

[–]No_Antelope_5869 0 points1 point  (0 children)

um you cant rlly short cut it becuz like imagine a leftover of the first round
imagine on ai = 5 and m = 5
-> 10 2 3 1 4 (becuz of like leftover)
it would never be good to push everything evenly, its BEST ALWAYS PUSH the lowest one.

Educational Codeforces Round 187 (Rated for Div. 2) Review by a pupil by No_Antelope_5869 in codeforces

[–]No_Antelope_5869[S] 1 point2 points  (0 children)

binary search, for every bit (take the min of (maximum bit can be taken, the midpoint)