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.
arr=map(int,raw_input().split())arr.sort()print"elelments are %r"%arrm=max(arr)print"maximum number is %r "%ml=len(arr)print" length of the list is % r:"%lforiinrange(0,l):ifarr[i]==m:print"%r is equal to %r"%(arr[i],m)delarr[i]printmax(arr)
PLEASE HELP! Why doesnt this get past all the test cases?
It runs fine if the input is 1,2,3,4 or 4 3 2 1 or 4 4 3 1..but not the test cases.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
PLEASE HELP! Why doesnt this get past all the test cases? It runs fine if the input is 1,2,3,4 or 4 3 2 1 or 4 4 3 1..but not the test cases.