Skip to main content

New answers tagged

2 votes

Consecutive Distance Rating

Nibbles, 17 nibbles (8.5 bytes) +.$*!=?@$;?@+$~`$ Attempt This Online! Corresponds to the 8.5 bytes 8c 3a c0 f4 36 f4 83 0d 7_. ...
Conor O'Brien's user avatar
2 votes

Consecutive Distance Rating

Octave, 54 bytes @(a){[x j]=sort(a) sum(abs(j(d=diff(x)<2)-j([!1 d])))} Try it online! My idea was to sum the absolute values of the differences of ordering ...
int 21h Glory to Ukraine's user avatar
2 votes

How-many-bonacci-like is this sequence?

Uiua # Experimental!, 22 21 characters ⊢▽⤚≡(≍↘¯1≡/+⊃◫↘)+1⊃⍏¤ Try it in the pad! Thanks to jan for -1 character!
Joao-3's user avatar
  • 1,223
2 votes

How-many-bonacci-like is this sequence?

Uiua, 21 characters ⊢⊚⇌⊂1≡(≍/+:°⊂⇌◫)+1⊃⍏¤ Try it here! This Generates the Range from 1 to len with the "rise is range len for monotonically increasing lists&...
jan's user avatar
  • 381
2 votes

How-many-bonacci-like is this sequence?

Uiua, 21 bytes ⍢(+1|¬≍↘¯1≡/+:⊙◫↘,,)1 Try it! Starting with n = 1, increment until there is no match of dropping the last of the row-wise sums of the n-wise ...
noodle person's user avatar

Top 50 recent answers are included