Skip to main content
fix header to be picked up by leaderboard.
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

JavascriptJavaScript, 60 charactersbytes

b=n=>(v=n.search('^H'))>0?b(n.replace(n.slice(v-1,v+2),'')):n

Not as good as edc65's answer, but I wanted to try something that didn't use Regex.

Javascript 60 characters

b=n=>(v=n.search('^H'))>0?b(n.replace(n.slice(v-1,v+2),'')):n

Not as good as edc65's answer, but I wanted to try something that didn't use Regex.

JavaScript, 60 bytes

b=n=>(v=n.search('^H'))>0?b(n.replace(n.slice(v-1,v+2),'')):n

Not as good as edc65's answer, but I wanted to try something that didn't use Regex.

Source Link
Amechra
  • 111
  • 3

Javascript 60 characters

b=n=>(v=n.search('^H'))>0?b(n.replace(n.slice(v-1,v+2),'')):n

Not as good as edc65's answer, but I wanted to try something that didn't use Regex.