From 995910f901698f876f7fd2594b9cd37c5cd2df98 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Thu, 13 Sep 2018 19:27:18 +0200 Subject: Add another Python solution to "Hackerrank solutinos: Python 3 and Perl 6 (part 1)" --- .../2018-09-13-hackerrank-solutions-python3-and-perl6-part-1.adoc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '_posts') diff --git a/_posts/2018-09-13-hackerrank-solutions-python3-and-perl6-part-1.adoc b/_posts/2018-09-13-hackerrank-solutions-python3-and-perl6-part-1.adoc index 3c6e380..e92b20d 100644 --- a/_posts/2018-09-13-hackerrank-solutions-python3-and-perl6-part-1.adoc +++ b/_posts/2018-09-13-hackerrank-solutions-python3-and-perl6-part-1.adoc @@ -384,6 +384,13 @@ sub birthday-cake-candles (@ar) { } ---- +[NOTE] +==== +On IRC, someone showed me a clean solution in Python 3: `return +ar.count(max(ar))`. This feels like a much cleaner solution than what I had +created. +==== + === Time Conversion This is the final challenge of this section on Hackerrank, and also this post. -- cgit v1.1