O of what now - eviltoast
  • lad@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    That’s a huge leap from O(n²) to O(n), in this example it would likely good to at least specify that it should be strictly less than best known solution (not sure if there are such cases on leet code, I thought they only restrict you to what is known to be solvable)