Count all valid knight tours on a 5x5 board starting from (0,0), visiting every square exactly once.
Constraints
Example
>>> knight_tour_count(1) 1 >>> knight_tour_count(2) 0 >>> knight_tour_count(3) 0 >>> knight_tour_count(4) 0 >>> knight_tour_count(5) 1728
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints