Valid String Check
Problem Overview
- Determine if a given string is valid under specific numeric rules.
- Input: a numeric string; Output: 1 if valid, 0 otherwise.
- Constraints: the numeric value is divisible by 3 and the string contains the digit '7' at least twice.
- Context: string validation for numeric identifiers in practical checks.
- From Uber interviews; a coding interview problem and common interview question.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
