From 3cdc3b3947a390d147b57c94a06673e141eaefe7 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 2 Dec 2020 13:21:31 +0100 Subject: [PATCH] some details --- solutions/2/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 solutions/2/README.md diff --git a/solutions/2/README.md b/solutions/2/README.md new file mode 100644 index 0000000..732cfa9 --- /dev/null +++ b/solutions/2/README.md @@ -0,0 +1,6 @@ +# 2 + +For the first we can simply count the occurrences and see if they are between the accepted values. +Just some simple parsing. + +The second one is similar, but we can be more efficient if we XOR the first and second position.