• + 0 comments

    Interesting challenge — definitely makes you think about frequency maps and array logic differently. I solved it using a simple count array and looped through to find the max sum of adjacent counts.

    BTW, if anyone here enjoys logical structure and problem-solving outside of pure code, I run a surf blog that breaks down surfboard types and gear the same way we break down code — clearly and with purpose. Feel free to check it out: Surviving Summer