Skip to main content

New answers tagged

0 votes

Make Zero From First 'n' Numbers

Vyxal, 9 bytes k-↔vÞż'∑¬ Try it Online! Explained ...
lyxal's user avatar
  • 33.7k
1 vote

Sum It Up with a Digital Triangle

K (ngn/k), 42 bytes {`0:({x#" "}'!#x),'{" "/$x}'-1_{1_+':x}\x} Try it online!
Ashy's user avatar
  • 51
1 vote

Sum It Up with a Digital Triangle

Uiua, 29 bytes ∧(◿10≡/+◫2&p⊂↯:@ ⊙⊸/$"_ _")°⊏ Try it ...
noodle person's user avatar
0 votes

Sum It Up with a Digital Triangle

JavaScript (Node.js), 91 bytes x=>{p='',x.map(_=>{p+=' ';console.log(p+x.join` `);x=x.map((e,n)=>(e+x[n+1])%10);x.pop()})} Try it online!
Andrew Bayly's user avatar
0 votes

Compare version numbers

Bash, 123 bytes ...
Themoonisacheese's user avatar
0 votes

Compare version numbers

Perl 5 + -pa, 41 bytes Returns 1 for >, 0 for ...
Dom Hastings's user avatar
0 votes

Sort a list and write some English!

Python 3.8 (pre-release) ...
squareroot12621's user avatar
0 votes

Sum It Up with a Digital Triangle

Vyxal C, 10 bytes (₌ṄzṠvt)_W Try it Online! Another 10 byter
lyxal's user avatar
  • 33.7k
2 votes

Sum It Up with a Digital Triangle

R, 75 74 bytes -1 byte thanks to pajonk `?`=\(x,n=j)if(j<-sum(x|1)){cat(strrep(" ",n-j),x%%10,"\n");x[-j]+x[-1]?n} Attempt This Online! A ...
int 21h Glory to Ukraine's user avatar
0 votes

Compare version numbers

JavaScript (Node.js), 64 bytes a=>b=>(g=i=>(a+b)[i]?~a.split`.`[i]-~b.split`.`[i]||g(i+1):0)(0) Try it online!
l4m2's user avatar
  • 25k
0 votes

Compare version numbers

Go, 248 bytes ...
bigyihsuan's user avatar
  • 10.2k
6 votes

Non-Decreasing Fibonacci Sequence modulo M

C (gcc), ~3.7ms ...
emanresu A's user avatar
  • 39.2k
5 votes

Non-Decreasing Fibonacci Sequence modulo M

Node.js 20.10.0, ~1.5 sec. ...
Arnauld's user avatar
  • 194k
1 vote

Flipping pancakes

JavaScript (Node.js), 72 bytes f=x=>(i=1,k=x.find(c=>c>x[i++]))?[i,2,i--,...f(x,x[i-1]=x[i],x[i]=k)]:[] Try it online! Bubble sort Not directly ...
l4m2's user avatar
  • 25k
2 votes

Flipping pancakes

R, 79 bytes \(v)for(j in sum(v|1):2){v[1:w]=v[(w=which.max(v)):1];v=rev(v[-1]);cat(w,j,"")} Attempt This Online! A function that takes in an unsorted ...
int 21h Glory to Ukraine's user avatar
0 votes

Print 0 to 100 without 1-9 characters

Brachylog, 9 bytes {ẉ₂<}ⁱ¹⁰¹ Try it online! Technically this doesn’t use 1 or 2, but ...
Fatalize's user avatar
  • 38.9k

Top 50 recent answers are included