Replying to @Brotherluii
Nice solution. I went a tiny bit further in part 2 to use the set of known seats to reduce the loop to just known empty seats.

12:24 PM ยท Dec 5, 2020

3
0
2
Replying to @datascience_fun
Nice. ๐Ÿ‘ Never used that .translate() and maketrans() before. Will have a look into these. Thx. ๐Ÿ˜
0
0
1
Replying to @datascience_fun
Hi, in my case i test for only 68 unknown seats, so...
0
0
0
Just realised that I missed the obvious trick that the row is essentially * 8 already as its shifted across 3 columns, so the slicing and multiplication can be removed also. That's what I get for coding at 5am on a Saturday.
0
0
1