Skip to main content
Post Undeleted by l4m2
added 17 characters in body
Source Link
l4m2
  • 28.3k
  • 2
  • 25
  • 103

JavaScript (Node.js), 6063 bytes

f=(a,b,c=0)=>(c-=-[a=~a.pop()]-[b+~b.pop()]+2)||a+b?f(a,b,c/10|0)+c%10:''a

Try it online!Try it online!

no bigint

JavaScript (Node.js), 60 bytes

f=(a,b,c=0)=>(c-=-[a.pop()]-[b.pop()])?f(a,b,c/10|0)+c%10:''

Try it online!

no bigint

JavaScript (Node.js), 63 bytes

f=(a,b,c=0)=>(c-=~a.pop()+~b.pop()+2)||a+b?f(a,b,c/10|0)+c%10:a

Try it online!

no bigint

Post Deleted by l4m2
Source Link
l4m2
  • 28.3k
  • 2
  • 25
  • 103

JavaScript (Node.js), 60 bytes

f=(a,b,c=0)=>(c-=-[a.pop()]-[b.pop()])?f(a,b,c/10|0)+c%10:''

Try it online!

no bigint