Remix.run Logo
▲ cnity 2 hours ago

Thanks for this, and your write-up. I solved it very similarly (using collections.Counter), but your solution is neater than mine and the use of iterator comprehension is more pythonic. Good luck with the rest, and keep that mind sharp!

▲xavdid 24 minutes ago | parent [-]

Thank you for reading! And yeah, it's really just a "practice makes perfect" thing. I'm always pleased with how using good python makes for such approachable solutions