Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdompeak authored Jun 12, 2021
1 parent df8354c commit 8031e3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int minFlip(subRoot, left, right)
if (subRoot.op == '&' && left.val + right.val == 1) // 0 & 1, 只需要翻转逻辑符
return 1;
if (subRoot.op == '&' && left.val + right.val == 2) // 1 & 1, 需要翻一个数字
return 1;
return min(left.flip, right.flip);

if (subRoot.op == '|' && left.val + right.val == 0) // 0 | 0 需要翻转一个数字
return min(left.flip, right.flip);
Expand Down

0 comments on commit 8031e3d

Please sign in to comment.