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.
new to Python or programming in general, what's the point of that empty class? since its just a pass. compare to my solution, sorted returns a ordered list then pass it to join turn it back to a orded string, can you please explain what are the advantages of using a empty class?
[print(*i) for i in Counter(''.join(sorted(input()))).most_common(3)]
also what is the point of writing this kinda "fake" one liner? id say adding few extra lines for varables and clarification won't hurt
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Company Logo
You are viewing a single comment's thread. Return to all comments →
new to Python or programming in general, what's the point of that empty class? since its just a pass. compare to my solution, sorted returns a ordered list then pass it to join turn it back to a orded string, can you please explain what are the advantages of using a empty class?
also what is the point of writing this kinda "fake" one liner? id say adding few extra lines for varables and clarification won't hurt