Facebook
From Trivial Anoa, 4 Years ago, written in Python.
This paste is a reply to Re: Re: Untitled from Unique Prairie Dog - go back
Embed
Viewing differences between Re: Re: Untitled and Re: Re: Re: Untitled
#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the longestIncreasingSubsequence function below.
def findLIS(s):

if __name__ == '__main__':
    fptr = open(os.environ['OUTPUT_PATH'], 'w')

    n = int(input())

    arr = []

    
findLIS(s):
    n=len(s)
    l=[1]*n
    
for in range(n):
        arr_item = int(input())
        arr.append(arr_item)

    result = findLIS(s)

    fptr.write(str(result) 
range(0,n):
        for j in range(0,i)  :
            if s[j]'\n')

    fptr.close()
1:
                l[i] =l[j] + 1
    l.sort()
    return l[-1]
arr1=[10,22,9,33,21,50,41,60]
a=findLIS(arr1)
print(a)

Replies to Re: Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Re: Untitled Beefy Leech python 4 Years ago.