Skip to content

Commit 6a7571c

Browse files
authored
Update minimum-flips-in-binary-tree-to-get-result.cpp
1 parent 6ac9fdf commit 6a7571c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

C++/minimum-flips-in-binary-tree-to-get-result.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ class Solution {
66
public:
77
int minimumFlips(TreeNode* root, bool result) {
88
static const int INF = numeric_limits<int>::max();
9-
static unordered_map<int, function<int(int, int)>> OP =
10-
{
9+
static unordered_map<int, function<int(int, int)>> OP = {
1110
{2, [](int x, int y) { return x | y; }},
1211
{3, [](int x, int y) { return x & y; }},
1312
{4, [](int x, int y) { return x ^ y; }},
@@ -58,8 +57,7 @@ class Solution2 {
5857
public:
5958
int minimumFlips(TreeNode* root, bool result) {
6059
static const int INF = numeric_limits<int>::max();
61-
static unordered_map<int, function<int(int, int)>> OP =
62-
{
60+
static unordered_map<int, function<int(int, int)>> OP = {
6361
{2, [](int x, int y) { return x | y; }},
6462
{3, [](int x, int y) { return x & y; }},
6563
{4, [](int x, int y) { return x ^ y; }},

0 commit comments

Comments
 (0)