summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
Diffstat (limited to '_posts')
-rw-r--r--_posts/2018-09-13-hackerrank-solutions-python3-and-perl6-part-1.adoc7
1 files changed, 7 insertions, 0 deletions
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.