Skip to main content
deleted 24 characters in body
Source Link
totallyhuman
  • 17.3k
  • 3
  • 33
  • 88

Python 2, 47 44 34 2934 bytes

-3 bytes thanks to musicman523. -10 bytes thanks to Blender. -5 bytes thanks to ovs.

Takes input as a list of strings.

lambda a:''.join(map(max,zip(*a)))

Try it online!Try it online!

Python 2, 47 44 34 29 bytes

-3 bytes thanks to musicman523. -10 bytes thanks to Blender. -5 bytes thanks to ovs.

Takes input as a list of strings.

lambda a:''.join(map(max,*a))

Try it online!

Python 2, 47 44 34 bytes

-3 bytes thanks to musicman523. -10 bytes thanks to Blender.

Takes input as a list of strings.

lambda a:''.join(map(max,zip(*a)))

Try it online!

added 21 characters in body
Source Link
totallyhuman
  • 17.3k
  • 3
  • 33
  • 88

Python 2, 47 4444 34 29 bytes

-3 bytes thanks to musicman523. -10 bytes thanks to Blender. -5 bytes thanks to ovs.

Takes input as a list of strings.

lambda a:''.join(maxmap(x,y)for xmax,y in zip(*a))

Try it online!Try it online!

Python 2, 47 44 bytes

-3 bytes thanks to musicman523.

Takes input as a list of strings.

lambda a:''.join(max(x,y)for x,y in zip(*a))

Try it online!

Python 2, 47 44 34 29 bytes

-3 bytes thanks to musicman523. -10 bytes thanks to Blender. -5 bytes thanks to ovs.

Takes input as a list of strings.

lambda a:''.join(map(max,*a))

Try it online!

added 69 characters in body
Source Link
totallyhuman
  • 17.3k
  • 3
  • 33
  • 88

Python 2, 4747 44 bytes

-3 bytes thanks to musicman523.

Takes input as a list of strings.

lambda a,b:''.join(max(x,y)for x,y in zip(a,b*a))

Try it online!Try it online!

Python 2, 47 bytes

lambda a,b:''.join(max(x,y)for x,y in zip(a,b))

Try it online!

Python 2, 47 44 bytes

-3 bytes thanks to musicman523.

Takes input as a list of strings.

lambda a:''.join(max(x,y)for x,y in zip(*a))

Try it online!

Source Link
totallyhuman
  • 17.3k
  • 3
  • 33
  • 88
Loading