Skip to main content
added 249 characters in body
Source Link
recursive
  • 10.4k
  • 20
  • 36

Stax, 27 25 23 18 bytes

«╥╦.ê§┘h!@ÆEÿ☺╜╫♥B

Run and debug it

Output is separated by newlines. This is

This program operates on adjacent pairs in the array, and determines whether there should be a completely different algorithm that what I had beforesplit between them using this procedure. I think there's still

Consider some golfing potentialarbitrary input [... w x y z ...]. I'll try Here is how to improvedetermine if there should be a split between x and annotate it latery.

  • If x == y, then yes.
  • If x > y, then iff z >= x.
  • If y > x, then iff w >= y.

The summing is left as an exercise.

Stax, 27 25 23 18 bytes

«╥╦.ê§┘h!@ÆEÿ☺╜╫♥B

Run and debug it

Output is separated by newlines. This is a completely different algorithm that what I had before. I think there's still some golfing potential. I'll try to improve and annotate it later.

Stax, 27 25 23 18 bytes

«╥╦.ê§┘h!@ÆEÿ☺╜╫♥B

Run and debug it

Output is separated by newlines.

This program operates on adjacent pairs in the array, and determines whether there should be a split between them using this procedure.

Consider some arbitrary input [... w x y z ...]. Here is how to determine if there should be a split between x and y.

  • If x == y, then yes.
  • If x > y, then iff z >= x.
  • If y > x, then iff w >= y.

The summing is left as an exercise.

deleted 4 characters in body
Source Link
recursive
  • 10.4k
  • 20
  • 36

Stax, 27 25 23 1918 bytes

æ`9fDÇ←¡ñV°▀╖╛AK♂â▐«╥╦.ê§┘h!@ÆEÿ☺╜╫♥B

Run and debug itRun and debug it

Output is separated by newlines. This is a completely different algorithm that what I had before. I think there's still some golfing potential. I'll try to improve and annotate it later.

Stax, 27 25 23 19 bytes

æ`9fDÇ←¡ñV°▀╖╛AK♂â▐

Run and debug it

Output is separated by newlines. This is a completely different algorithm that what I had before. I think there's still some golfing potential. I'll try to improve and annotate it later.

Stax, 27 25 23 18 bytes

«╥╦.ê§┘h!@ÆEÿ☺╜╫♥B

Run and debug it

Output is separated by newlines. This is a completely different algorithm that what I had before. I think there's still some golfing potential. I'll try to improve and annotate it later.

added 1 character in body
Source Link
recursive
  • 10.4k
  • 20
  • 36

Stax, 27 25 2323 19 bytes

âr╩iÄ╟Ö4⌡&3x░pσôâ↑▒☻i1☼æ`9fDÇ←¡ñV°▀╖╛AK♂â▐

Run and debug itRun and debug it

Output is separated by newlines. This is a completely different algorithm that what I had before. I think there's still some golfing potential. I'll try to improve and annotate it later.

Stax, 27 25 23 bytes

âr╩iÄ╟Ö4⌡&3x░pσôâ↑▒☻i1☼

Run and debug it

Output is separated by newlines. This is a completely different algorithm that what I had before. I think there's still some golfing potential. I'll try to improve and annotate it later.

Stax, 27 25 23 19 bytes

æ`9fDÇ←¡ñV°▀╖╛AK♂â▐

Run and debug it

Output is separated by newlines. This is a completely different algorithm that what I had before. I think there's still some golfing potential. I'll try to improve and annotate it later.

deleted 3 characters in body
Source Link
recursive
  • 10.4k
  • 20
  • 36
Loading
deleted 1927 characters in body
Source Link
recursive
  • 10.4k
  • 20
  • 36
Loading
added 4 characters in body
Source Link
recursive
  • 10.4k
  • 20
  • 36
Loading
added 2033 characters in body
Source Link
recursive
  • 10.4k
  • 20
  • 36
Loading
added 132 characters in body
Source Link
recursive
  • 10.4k
  • 20
  • 36
Loading
Source Link
recursive
  • 10.4k
  • 20
  • 36
Loading