KNICOV - Where is my mistake?

I spent nearly whole the time on Knight Covering. Can someone tell me where’s my mistake, please?

1 Like

for n = 3 and m = 14 the answer should be 11
where as your code gives 12


Thanks a lot!

Here’s a link to my answer if you want to stick to calculating patterns.

Thank you!