KNICOV - Where is my mistake?

I spent nearly whole the time on Knight Covering. Can someone tell me where’s my mistake, please? CodeChef: Practical coding for everyone

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

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

Thanks a lot!

Thank you!