30 
 
        
      
      从较小的“ H”创建一个“ H”
      
  挑战 创建一个函数或程序,当给定整数时size,该函数或程序将执行以下操作: 如果size等于1,则输出 H H HHH H H 如果size大于1,则输出 X X XXX X X X程序/功能的输出在哪里size - 1 (只要您愿意,0只要您在答案中指定,就可以使基本情况与相对应) 可以使用以下任何一种输出格式,以您更方便的方式: 所需结构的字符串,其中任意两个不同的字符分别对应于H和space 具有所需结构的二维数组,其中任意两个不同的值分别对应于H和space 字符串的数组/列表,每个字符串中有一行输出,并且与H和对应的任意两个不同的值space 只要每行上有恒定数量的前导空格,就可以使用前导空格。两个不同的输出字符可以取决于您选择的任何内容,只要它们不同即可。 指定代码返回的输出格式。 测试用例 1 H H HHH H H 2 H H H H HHH HHH H H H H H HH HH H HHHHHHHHH H HH HH …
      
        
          
                   73
                
        
        
          
                  
                    code-golf 
                  
                    ascii-art 
                  
                    fractal 
                  
                    code-golf 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    string 
                  
                    matrix 
                  
                    code-golf 
                  
                    graph-theory 
                  
                    maze 
                  
                    binary-matrix 
                  
                    code-golf 
                  
                    kolmogorov-complexity 
                  
                    random 
                  
                    code-challenge 
                  
                    metagolf 
                  
                    test-battery 
                  
                    brain-flak 
                  
                    text-processing 
                  
                    code-golf 
                  
                    matrix 
                  
                    code-golf 
                  
                    number-theory 
                  
                    primes 
                  
                    code-golf 
                  
                    string 
                  
                    matrix 
                  
                    code-golf 
                  
                    binary 
                  
                    bitwise 
                  
                    code-golf 
                  
                    number 
                  
                    factorial 
                  
                    floating-point 
                  
                    code-golf 
                  
                    number 
                  
                    sequence 
                  
                    code-golf 
                  
                    sequence 
                  
                    cops-and-robbers 
                  
                    code-golf 
                  
                    sequence 
                  
                    cops-and-robbers 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    math 
                  
                    decision-problem 
                  
                    number-theory 
                  
                    integer 
                  
                    code-golf 
                  
                    number 
                  
                    decision-problem 
                  
                    functional-programming 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    matrix 
                  
                    code-golf 
                  
                    string 
                  
                    classification 
                  
                    string 
                  
                    code-challenge 
                  
                    binary 
                  
                    compression 
                  
                    decode 
                  
                    code-golf 
                  
                    string 
                  
                    string 
                  
                    code-challenge 
                  
                    balanced-string 
                  
                    encode 
                  
                    code-golf 
                  
                    number-theory 
                  
                    integer 
                  
                    base-conversion 
                  
                    code-golf 
                  
                    math 
                  
                    number-theory 
                  
                    geometry 
                  
                    abstract-algebra 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    sorting 
                  
                    optimization 
                  
                    code-golf 
                  
                    math 
                  
                    geometry 
                  
                    image-processing 
                  
                    generation 
                  
                    code-golf 
                  
                    string 
                  
                    cops-and-robbers 
                  
                    repeated-transformation 
                  
                    grammars 
                  
                    cops-and-robbers 
                  
                    repeated-transformation 
                  
                    grammars 
                  
                    code-challenge 
                  
                    restricted-source 
                  
                    tips 
                  
                    source-layout 
                  
                    javascript 
                  
                    code-challenge 
                  
                    kolmogorov-complexity 
                  
                    restricted-source 
                  
                    code-golf 
                  
                    combinatorics 
                  
                    counting 
                  
                    math 
                  
                    fastest-code 
                  
                    linear-algebra 
                  
                    code-golf 
                  
                    math 
                  
                    permutations 
                  
                    matrix 
                  
                    linear-algebra 
                  
                    code-golf 
                  
                    string 
                  
                    decision-problem 
                  
                    restricted-source 
                  
                    code-golf 
                  
                    number 
                  
                    array-manipulation 
                  
                    subsequence 
                  
                    code-golf 
                  
                    number 
                  
                    array-manipulation 
                  
                    matrix 
                  
                    code-golf 
                  
                    brainfuck 
                  
                    code-golf 
                  
                    color 
                  
                    code-golf 
                  
                    quine 
                  
                    source-layout 
                  
                    code-golf 
                  
                    subsequence 
                  
                    code-golf 
                  
                    string 
                  
                    ascii-art 
                  
                    code-golf 
                  
                    string 
                  
                    ascii-art 
                  
                    alphabet 
                  
                    code-golf 
                  
                    decision-problem 
                  
                    interpreter 
                  
                    hexagonal-grid 
                  
                    halting-problem 
                  
                    code-golf 
                  
                    string 
                  
                    polynomials 
                  
                    calculus 
                  
                    code-golf 
                  
                    math 
                  
                    decision-problem 
                  
                    matrix 
                  
                    complex-numbers 
                  
                    code-golf 
                  
                    random 
                  
                    code-golf 
                  
                    number 
                  
                    arithmetic