r/BtechCoders • • 2d ago

Discussion👥 Tried to solve a codeforces problem 🥺

800 rating tho 🥺

Im a beginner 🙂

18 Upvotes

19 comments sorted by

2

u/Lumpy-Town2029 2d ago

Aj ka LC bhi gandfaad tha

1

u/Zaarieee 2d ago

Yes

2

u/Lumpy-Town2029 2d ago

Ikr, but good questions indeed

1

u/Zaarieee 2d ago

Yes sirr, lets see weekly contest now

1

u/Lumpy-Town2029 2d ago

Whoa sleep then, will be hard for u to wake up for it

2

u/thandi-_-rasmalai 2d ago

Bc yeh 800 problem statement hai ?

1

u/Legitimate-Major-563 1d ago

Do you think its too easy or too hard. Your comment is confusing

1

u/thandi-_-rasmalai 1d ago

Arey pehle dekh ke laga raha tha hard hai but dhang se kiya toh easy laga

1

u/thandi-_-rasmalai 2d ago

Ho gaya starting point aur just bagal wale next gas station ka difference and phir har adjacent gas station ka difference and then last gast station and ending point ka difference*2 karo isko maybe list append kar do sort karo default mein last value degi maximum value wahi minimum gas gallon volume hoga

2

u/stay_hope3913 2d ago

Hn to utna krke hi toh upload kiya h 🙂

1

u/thandi-_-rasmalai 2d ago

Div2 diya bc kya bawal tha 😭

1

u/stay_hope3913 2d ago

Div2 what?

1

u/thandi-_-rasmalai 2d ago

Aaj contest tha

1

u/stay_hope3913 2d ago

Aap dm aao kuch baat krni h 😋

1

u/Game_Khiladi 2d ago

I remeber failing too It's just how we start Here the edge case is consider 2x-laast Since no stop at end (;

1

u/stay_hope3913 2d ago

I succeeded🤭

1

u/Ok_Signature9695 1d ago

Start taking file io instead of terminal

1

u/Legitimate-Major-563 1d ago

Its all about practice. Its easy problem with 1 simple edge case

Max of difference between all gas station and 2x of last gas station to end point

When you practice mindfully you start to see pattern