+ day 06, part 01
This commit is contained in:
parent
11c9fba2c4
commit
e73fd9a4c7
13
06/01.sh
Executable file
13
06/01.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
x=()
|
||||
i=0
|
||||
while read -n1 a; do
|
||||
x=(${x[@]:0:3})
|
||||
x=($a ${x[@]})
|
||||
i=$((i+1))
|
||||
|
||||
[[ $(echo ${x[@]} | tr ' ' '\n' | sort | uniq | wc -l) == 4 ]] && break
|
||||
done < /tmp/06
|
||||
|
||||
echo $i
|
5
06/README.md
Normal file
5
06/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# day 06 (09, oops)
|
||||
|
||||
# part 1
|
||||
|
||||
*yawns*
|
Loading…
Reference in a new issue