Facebook
From Unique Prairie Dog, 4 Years ago, written in Python.
This paste is a reply to Re: Untitled from Emerald Pelican - view diff
Embed
Download Paste or View Raw
Hits: 230
  1. #!/bin/python3
  2.  
  3. import math
  4. import os
  5. import random
  6. import re
  7. import sys
  8.  
  9. # Complete the longestIncreasingSubsequence function below.
  10. def findLIS(s):
  11.  
  12. if __name__ == '__main__':
  13.     fptr = open(os.environ['OUTPUT_PATH'], 'w')
  14.  
  15.     n = int(input())
  16.  
  17.     arr = []
  18.  
  19.     for _ in range(n):
  20.         arr_item = int(input())
  21.         arr.append(arr_item)
  22.  
  23.     result = findLIS(s)
  24.  
  25.     fptr.write(str(result) + '\n')
  26.  
  27.     fptr.close()

Replies to Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Untitled Trivial Anoa python 4 Years ago.