Skip to main content
modernize
Source Link
chunes
  • 26.8k
  • 3
  • 24
  • 53

Uiua, 6 bytes

⊡⊢⍖∵⧻⊡⊢⍖⍚⧻.

Try it!Try it!

⊡⊢⍖∵⧻⊡⊢⍖⍚⧻.
     .  # duplicate
   ∵⧻⍚⧻   # lengths
 ⊢⍖     # index of maximum
⊡       # pick

Uiua, 6 bytes

⊡⊢⍖∵⧻.

Try it!

⊡⊢⍖∵⧻.
     .  # duplicate
   ∵⧻   # lengths
 ⊢⍖     # index of maximum
⊡       # pick

Uiua, 6 bytes

⊡⊢⍖⍚⧻.

Try it!

⊡⊢⍖⍚⧻.
     .  # duplicate
   ⍚⧻   # lengths
 ⊢⍖     # index of maximum
⊡       # pick
Source Link
chunes
  • 26.8k
  • 3
  • 24
  • 53

Uiua, 6 bytes

⊡⊢⍖∵⧻.

Try it!

⊡⊢⍖∵⧻.
     .  # duplicate
   ∵⧻   # lengths
 ⊢⍖     # index of maximum
⊡       # pick