CodeForces Day 18: Worms & Same Differences Solutions

𝐃𝐚𝐲 𝟒𝟖/𝟏𝟎𝟎 – Competitive Programming CodeForces • 474B – Worms • 1520D – Same Differences Worms was a classic prefix sum + binary search problem. Precompute cumulative sums and then answer each query using binary search. Clean and standard approach. Same Differences was straightforward — directly implement what the question suggests after a small observation. Simple problems, but good revision of basics. #Codeforces #CompetitiveProgramming #100DaysOfCode #Implementation #ProblemSolving #DSA #Cpp #Algorithms #DailyPractice

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories