KNICOV - Where is my mistake?

I spent nearly whole the time on Knight Covering. Can someone tell me where’s my mistake, please? https://www.codechef.com/viewsolution/14285586

1 Like

for n = 3 and m = 14 the answer should be 11
where as your code gives 12
http://imgur.com/6wtW9yJ

3 Likes

Thanks a lot!

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

Thank you!