Drawing Hydrocarbons X40409


Statement
 

pdf   zip

html
Public test cases
  • Input

    1
    

    Output

      H
      |
    H-C-H
      |
      H
    
  • Input

    4
    

    Output

      H H H H
      | | | |
    H-C-C-C-C-H
      | | | |
      H H H H
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Python