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.
Could get it down to 1 line with using collections.Counter instead of building the counter array cnt manully in the first 2 lines of code here, but gets a bit too ugly for 1 liner.
¯_(ツ)_/¯
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Picking Cards
You are viewing a single comment's thread. Return to all comments →
3 line Python solution, 100%
Could get it down to 1 line with using collections.Counter instead of building the counter array
cnt
manully in the first 2 lines of code here, but gets a bit too ugly for 1 liner.¯_(ツ)_/¯