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