From e37e0b89f51716c0d8e6991488c20cd0ac284384 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Tue, 6 Dec 2022 23:02:25 +1030 Subject: [PATCH] 2022 Day 6 Scala vs Nim benching (spoiler: Nim got blown off the board) --- 2022/day6.nim | 48 ++++++++++++++++++++++++++---------------------- 2022/day6.scala | 16 ++++++++++++++-- 2 files changed, 40 insertions(+), 24 deletions(-) diff --git a/2022/day6.nim b/2022/day6.nim index 9a50e95..a23171d 100644 --- a/2022/day6.nim +++ b/2022/day6.nim @@ -2,34 +2,38 @@ import strutils let line = strip read_file "input/6" -# proc find_first(n: int): int = -# for i in n..line.len: -# var s = {line[i-n]} -# for c in line[i-n+1..