Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 301 characters in body
Source Link
emanresu A
  • 46.2k
  • 5
  • 111
  • 257

Vyxal s, 13 bytes

›vḟv›ƛ&›[\ε|0

Try it Online!

A port of the jelly answer, and I think the best I'm gonna get.

Attempted port of Jonas, 21 bytes

Ẋƛ÷ε1=;?Lɾƛ?Lɾ-ȧ;f*∑1⁄2

Try it Online!

Old version, 23 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

Older version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

Vyxal s, 13 bytes

›vḟv›ƛ&›[\ε|0

Try it Online!

A port of the jelly answer, and I think the best I'm gonna get.

Old version, 23 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

Older version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

Vyxal s, 13 bytes

›vḟv›ƛ&›[\ε|0

Try it Online!

A port of the jelly answer, and I think the best I'm gonna get.

Attempted port of Jonas, 21 bytes

Ẋƛ÷ε1=;?Lɾƛ?Lɾ-ȧ;f*∑1⁄2

Try it Online!

Old version, 23 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

Older version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

added 334 characters in body
Source Link
emanresu A
  • 46.2k
  • 5
  • 111
  • 257

Vyxal s, 2313 bytes

›vḟv›ƛ&›[\ε|0

Try it Online!

A port of the jelly answer, and I think the best I'm gonna get.

Old version, 23 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

OldOlder version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

Vyxal, 23 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

Old version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

Vyxal s, 13 bytes

›vḟv›ƛ&›[\ε|0

Try it Online!

A port of the jelly answer, and I think the best I'm gonna get.

Old version, 23 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

Older version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

added 343 characters in body
Source Link
emanresu A
  • 46.2k
  • 5
  • 111
  • 257

Vyxal, 2823 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

Old version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

Vyxal, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

Vyxal, 23 bytes

L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2

Try it Online! I still think there's a bit more I can do.

Old version, 28 bytes

L(x|L(←x i0niε1=[n←xε&+]))1円⁄2

Try it Online!

This. Is. Horrible.

Source Link
emanresu A
  • 46.2k
  • 5
  • 111
  • 257
Loading

AltStyle によって変換されたページ (->オリジナル) /