We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aoc2018/day1/freq2.awk
Line 8 in 5d1a4f8
Hi, I think you need to test hist[val] == 2 because it will be trivially set to 1 on each line... at least this is what my awk thinks!
hist[val] == 2
The text was updated successfully, but these errors were encountered:
Honestly, I don't even remember what I was thinking, but...
hist[val]
1
Sorry, something went wrong.
You're right 2 doesn't make sense.. I see I have hist[val] += 1 instead of hist[val] = 1, this is why it works with 2 for me.
hist[val] += 1
hist[val] = 1
No branches or pull requests
aoc2018/day1/freq2.awk
Line 8 in 5d1a4f8
Hi, I think you need to test
hist[val] == 2
because it will be trivially set to 1on each line... at least this is what my awk thinks!
The text was updated successfully, but these errors were encountered: