Problem 42 X44069


Statement
 

pdf   zip

html
Public test cases
  • Input

    My favourite number is 42. That is a 4 next to a 2 and nothing else. So, 420 is not valid. Just 42!
    

    Output

    2
    
  • Input

    See the Orion Nebula M42 through my telescope that my grandfather bought in 1942
    

    Output

    1
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Python