!code_golf@programming.dev
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
!code_golf
@programming.devhttps://codegolf.stackexchange.com/questions/267491/cyclically-sort-a-list
Given a list of Integers greater than zero, Sort each of the unique values in ascending order, then repeat the process on the remaining duplicate values and append. Example: [1,5,2,2,8,3,5,2,9] ==&...
https://youtu.be/iScy18pVR58
Hello! Here's a little coding challenge for anyone who'd like to take part: you have until October 1st to create a tiny chess bot in C# using the framework l...
Write a function that prints an n
big tree, e.g. for n=5:
*
* *
* * *
* * * *
* * * * *
| |
Here is what I came up with in C:
N,i;a(n){for(i=N=N?N:n+2;i--;printf(i?"* "+(N-n-1<i):--n?"\n":"\n%*s",N,"| |"));n&&a(n);}
// the invocation isn't part of the golf:
main(){a(5);}
PS: Code blocks currently wrap around when they are too long, I've already submitted a patch to make them scroll horizontally instead.
https://pyobfusc.com/