I just tried my first problem on Codewars and realised: This solution feels like cheating

  • floorjam@lemmy.worldOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I first did something with findfirst, which needed some bounds checks. Then I saw another answer and they used searchsortedfirst which is just it … Even the documentation reads like the problem description