We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Python3 code. Why would I get timeout errors on large big data sets? How to improve it?
#!/bin/pythonimportsysn=int(raw_input().strip())unsorted=[]unsorted_i=0forunsorted_iinxrange(n):unsorted_t=str(raw_input().strip())unsorted.append(unsorted_t)# your code goes hereunsorted=[int(i)foriinunsorted]out=sorted(unsorted)foriinout:print(i)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
Python3 code. Why would I get timeout errors on large big data sets? How to improve it?