New answers tagged

0

PowerShell, 23 bytes -join($args|group|% N*) Try it online!


1

Zsh, 98 bytes a=({1..12} {14..28..2} 36 48 72 {8..163}0 1638) r=11 for i;((r+=i,r=(r>$#a)?$#a:(r?r:1))) <<<$a[r] Try it online! Iterate through the arguments, clamping our index between 1 and $#a (length of $a).


1

C (gcc), 157 154 bytes -3 bytes thanks to ceilingcat. Takes a string of + (step up) and non-+ (step down). Returns the final font size. n,d;f(char*s){for(n=11;*s;n=n>28&n<81?index("\34$0HP",n-d)[2*d-1]:n-d+((n>1&n<29)+(n>12&n<29)+(n>80&n<1639)*8+(n>80&n<1631)*2)*(2*d-1))n+=d=*s++==43;s=n;} Try it online!


Top 50 recent answers are included