We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b95f4b commit 1370cecCopy full SHA for 1370cec
C++/categorize-box-according-to-criteria.cpp
@@ -29,7 +29,7 @@ class Solution2 {
29
string categorizeBox(int length, int width, int height, int mass) {
30
static const vector<string> CATEGORIES = {"Neither", "Heavy", "Bulky", "Both"};
31
const int i = 2 * ((length >= 10'000 || width >= 10'000 || height >= 10'000) ||
32
- 1ll * length * width * height >= 1'000'000'000) + (mass >= 100);
+ 1ll * length * width * height >= 1'000'000'000) + (mass >= 100);
33
return CATEGORIES[i];
34
}
35
};
0 commit comments