Ad
  • Custom User Avatar

    solved it but when N gets over 28, it starts taking too much time and my code times out. I used dictionary lookups and stored diogonals inside as well as invalid squares stored as sets, idk how else i can optimize it though. whatevs, it was fun to poke around this one, thx!