Longest Increasing Subsequence Arrays

Sort by

recency

|

6 Discussions

|

  • + 0 comments

    The longest expanding aftereffect issue searches for numbers, in rising request, that form the expanding aftereffect in an exhibit. However, here I might want to add an illustration of my business and gambling clubs that acknowledge skrill are the stunning business at that point and I have https://exycasinos.in/installment/skrill/ for it. Thus, to separate the aftereffect, the exhibit that stores the number information is navigated.

  • + 1 comment

    I decide to quit my coding career after trying this problem...

    • + 1 comment

      The time limit for this problem is no reasonable.

      You have to do everything perfectly correct to not get a TLE.

      • + 1 comment

        Well, if you are talking about calculating ncr then you should take a look at this : https://www.geeksforgeeks.org/compute-ncr-p-set-3-using-fermat-little-theorem/

        • + 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

  • + 0 comments

    This is quite a tough problem. Can this be solved using DP ?

  • + 0 comments

    can anyone give sone hints

  • + 1 comment

    I do not expect [1,1,2,1] to be a valid array if the elements are to be in increasing order!. Can someone clarify this?

    • + 0 comments

      It is valid untill you can find a subsequence in increasing order. In your example it is still possible to select {1,2} subsequence from array. The invalid array will be [2,1,1,1], because there is no "1" before "2", so you can't select increasing subsequence.