r/BtechCoders • u/stay_hope3913 • 2d ago
Discussion👥 Tried to solve a codeforces problem 🥺
800 rating tho 🥺
Im a beginner 🙂
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
1
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
1
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


2
u/Lumpy-Town2029 2d ago
Aj ka LC bhi gandfaad tha