Skip to main content
1 of 5
Andreas Louv
  • 1.7k
  • 13
  • 25

JavaScript ES6, 30 bytes

a=i=>i>70?a(~~(i/10)-i%10*2):i
Andreas Louv
  • 1.7k
  • 13
  • 25