2496. Maximum Value of a String in an Array
The value of an alphanumeric string can be defined as: - The numeric representation of the string in base 10, if it comprises of digits only. - The length of the string, otherwise. Given an array strs of alphanumeric strings, return the maximum value of any string in strs. Example 1: Input: strs = ["alic3","bob","3","4","00000"] Output: 5 Explanation: - "alic3" consists of both letters and
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start