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.
deforganizingContainers(container):# Write your code herecolum_list=[]colum=[]caps=list(map(lambdax:sum(x),container))foriinrange(n):forjinrange(n):colum.append(container[j][i])colum_list.append(colum)colum=[]per_type=list(map(lambdax:sum(x),colum_list))ifsorted(per_type)==sorted(caps):return'Possible'else:return'Impossible'
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Organizing Containers of Balls
You are viewing a single comment's thread. Return to all comments →