Longest Increasing Subsequence Arrays

  • + 1 comment

    Not really. The ncr is the key to get accepted. Not because it's hard, the truth is you have to cache the factorials and the inverse element of these factorials to make the ncr efficient enough.

    Is that really necessary? Why not relaxing the time limit to make us happy? haha

    • + 1 comment

      Yeah, but still you gotta know how to use ncr for this problem first, and then gotta worry about computing it efficiently XD

      • + 0 comments

        I've been working so hard on the first one and feel totally depressed by the second one.

        P.S. I don't quit coding...yet... :)