Skip to main content
added 118 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25

Python 3, 62 47 5757 54 51 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

Edit: +10 bytes to fix a bug

Edit: -3 bytes thanks to @betaveros

Edit: -3 bytes by using max instead of pop

lambda x,y:max({*"abc"}-{x[:1],y[:1]}).pop+max(x,y)+(x[1:]or y[1[1:])

Try it online!Try it online!

Python 3, 62 47 57 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

Edit: +10 bytes to fix a bug

lambda x,y:({*"abc"}-{x[:1],y[:1]}).pop()+(x[1:]or y[1:])

Try it online!

Python 3, 62 47 57 54 51 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

Edit: +10 bytes to fix a bug

Edit: -3 bytes thanks to @betaveros

Edit: -3 bytes by using max instead of pop

lambda x,y:max({*"abc"}-{x[:1],y[:1]})+max(x,y)[1:]

Try it online!

added 73 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25

Python 3, 62 4747 57 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

Edit: +10 bytes to fix a bug

lambda x,y:({*"abc"}-{x[:1],y[:1]}).pop()+x[1+(x[1:]or y[1:])

Try it online!Try it online!

Python 3, 62 47 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

lambda x,y:({*"abc"}-{x[:1],y[:1]}).pop()+x[1:]

Try it online!

Python 3, 62 47 57 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

Edit: +10 bytes to fix a bug

lambda x,y:({*"abc"}-{x[:1],y[:1]}).pop()+(x[1:]or y[1:])

Try it online!

Rollback to Revision 2
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25

Python 3, 62 5747 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

lambda x,y:({*"abc"}-{x[:1],y[:1]}).pop()+x[1:]

Try it online!

Python 3, 62 57 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

lambda x,y:({*"abc"}-{x[:1],y[:1]}).pop()+x[1:]

Try it online!

Python 3, 62 47 bytes

Edit: - 5 bytes thanks to @Mr.Xcoder

lambda x,y:({*"abc"}-{x[:1],y[:1]}).pop()+x[1:]

Try it online!

too low :(
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
added 85 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25
Loading
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25
Loading