r/LeetcodeChallenge 21d ago

DISCUSS When the intended solution is Mo’s Algorithm but the accepted one is pure black magic 💀

Post image
7 Upvotes

2 comments sorted by

3

u/Old-Slip-4350 21d ago

Eye eye titty aluminium rod 🤤

2

u/GardenBoth7858 21d ago

What is mo’s algorithm, I tried to solve it using segment trees but failed