labels, return the largest weight among them.labels=["box7", "12", "shelf", "009"] → 12
"box7" weighs 4 (it has letters), "12" weighs 12, "shelf" weighs 5 and "009" weighs 9. The largest is 12.
labels=["0000", "a", "zz"] → 2
"0000" is all digits, so its weight is the number 0, not its length 4. The maximum comes from "zz": 2.
labels=["a1b2c3", "300", "x"] → 300
labels[i] consists of lowercase English letters and digitslabels=["box7", "12", "shelf", "009"]
12
Run checks the first 3 tests in your browser. Submit checks all 101 tests on the server, hidden ones included.