Skip to main content

New answers tagged

3 votes
Accepted

Write a function that takes an input string and encodes it using a modified Fibonacci sequence in reverse

05AB1E, 8 bytes Çā<ÅfR+ç Output as a list of characters. Try it online or verify all test cases. Explanation: ...
Kevin Cruijssen's user avatar
2 votes

Write a function that takes an input string and encodes it using a modified Fibonacci sequence in reverse

Vyxal, 51 bitsv2, 6.375 bytes C:ẏṘ∆F+C Try it Online! Bitstring: 010101101100110100101110001100110100000001001011110 Outputs a ...
lyxal's user avatar
  • 33.6k
0 votes

Write a function that takes an input string and encodes it using a modified Fibonacci sequence in reverse

...
Williams's user avatar
0 votes

First-n Fibonacci sequence elements

Uiua, 12 bytes [◌◌⍥⊃+.:0:1] Try it online Outputs in reverse order.
noodle person's user avatar
1 vote

First-n Fibonacci sequence elements

Python (38 bytes) a,b=0,1;exec("print(a);a,b=b,a+b;"*31) the factor of multiplication prints the first N Edit: First n from stdin (48 bytes) ...
stwq's user avatar
  • 11
0 votes

Fibonacci function or sequence

AWK, 38 bytes END{m=1;for(;;i=m+n){print i;n=m;m=i}} Try it online!
C K's user avatar
  • 91

Top 50 recent answers are included