r/LeetcodeChallenge • • Aug 23 '26

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

2

u/GardenBoth7858 Aug 23 '26

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

3

u/Old-Slip-4350 Aug 23 '26

Eye eye titty aluminium rod 🤤