Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Solution:
def categorizeBox(self, length: int, width: int, height: int, mass: int) -> str:
return "Both" if (length >= 10000 or width >= 10000 or height >= 10000 or length * width * height >= 10**9) and mass >= 100 else "Bulky" if (length >= 10000 or width >= 10000 or height >= 10000 or length * width * height >= 10**9) else "Heavy" if mass >= 100 else "Neither"