Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 581 Bytes

File metadata and controls

26 lines (15 loc) · 581 Bytes

Back

Variable Name

https://app.codesignal.com/arcade/intro/level-6/6Wv4WsrsMJ8Y2Fwno

Challenge description

Correct variable names consist only of English letters, digits and underscores and they can't start with a digit.

Check if the given string is a correct variable name.

Example

  • For name = "var_1__Int", the output should be solution(name) = true.

  • For name = "qq-q", the output should be solution(name) = false.

  • For name = "2w2", the output should be solution(name) = false.

Solution

Solved with Rust