summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2018-09-13 19:27:18 +0200
committerPatrick Spek <p.spek@tyil.nl>2018-09-13 19:27:18 +0200
commit995910f901698f876f7fd2594b9cd37c5cd2df98 (patch)
tree0f69e32ce6e070fe07851f67eb4698c8dd25e63c /_posts
parenta188ca88722c2e8b88abc34ae2963c0f493072f1 (diff)
Add another Python solution to "Hackerrank solutinos: Python 3 and Perl 6 (part 1)"
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.