count matches w/ string manipulation: ~75% gain, 85-90% gain from V1

This commit is contained in:
2021-07-24 20:26:55 +02:00
parent 1806f79e14
commit 01e5c6217d
4 changed files with 22 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ ex1:
@#$(TIME) ex1-c 2020 < $(INPUT) 2>&1
ex2:
@$(TIME) ex2.bash < $(INPUT) 2>&1
@#$(TIME) ex2.bash < $(INPUT) 2>&1
@#$(TIME) ex1-c 30000000 < $(INPUT) 2>&1
clean: