Advent of Code 2020 Day 4

Naughty Code Elf passport

I had finished the puzzle early in the morning but decided to sleep on the cartoon. Nothing immediately came to me. I had a problem with the puzzle’s ethics. The elf was to help with passport validation but conveniently left off the requirement of country for his own personal gain. The puzzle was straight forward data validation and the second part I put in code to test the details and through running the debugger I found the data did not hit the code because it was eliminated based a simple length check.

After sleeping on this I decided that Santa would think him naughty.