Skip to content

Commit 1370cec

Browse files
authored
Update categorize-box-according-to-criteria.cpp
1 parent 7b95f4b commit 1370cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/categorize-box-according-to-criteria.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Solution2 {
2929
string categorizeBox(int length, int width, int height, int mass) {
3030
static const vector<string> CATEGORIES = {"Neither", "Heavy", "Bulky", "Both"};
3131
const int i = 2 * ((length >= 10'000 || width >= 10'000 || height >= 10'000) ||
32-
1ll * length * width * height >= 1'000'000'000) + (mass >= 100);
32+
1ll * length * width * height >= 1'000'000'000) + (mass >= 100);
3333
return CATEGORIES[i];
3434
}
3535
};

0 commit comments

Comments
 (0)