Can you spot the error in my approach for this Bitmask DP problem?

Revision en2, by cosmere, 2022-08-15 00:14:38

I was trying to solve this problem here. In my initial submission here, I am going from a mask with only one fish to a complete mask, and it works. But in the case of this submission here, I am going from a complete mask to a particular fish, but apparently there is some overcounting in this case. Can someone please help me understand what is wrong in the second submission. Thanks in advance!

Tags dp, bitmask

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English cosmere 2022-08-15 00:14:38 30
en1 English cosmere 2022-08-15 00:12:30 610 Initial revision (published)