Skip to main content
deleted 1 character in body
Source Link
avl42
  • 111
  • 4

Tcl 38 bytes

proc h x {expr $x?1./($x)+\\[h+\[h $x-1]:0} 

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

Tcl 38 bytes

proc h x {expr $x?1./($x)+\\[h $x-1]:0} 

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

Tcl 38 bytes

proc h x {expr $x?1./($x)+\[h $x-1]:0} 

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

added 10 characters in body
Source Link
user63187
user63187

Tcl 38 bytes

proc h x {expr $x?1./($x)+\[h $x-1]:0}

proc h x {expr $x?1./($x)+\\[h $x-1]:0} 

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

Tcl 38

proc h x {expr $x?1./($x)+\[h $x-1]:0}

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

Tcl 38 bytes

proc h x {expr $x?1./($x)+\\[h $x-1]:0} 

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

added 1 character in body
Source Link
avl42
  • 111
  • 4

Tcl 38

proc h x {expr $x?1./($x)+[h+\[h $x-1]:0}

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

Tcl 38

proc h x {expr $x?1./($x)+[h $x-1]:0}

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

Tcl 38

proc h x {expr $x?1./($x)+\[h $x-1]:0}

That's a very dirty hack, and the recursive calls pass literal strings like "5-1-1-1..." until it evaluates to 0.

Source Link
avl42
  • 111
  • 4
Loading