Questions tagged [tips]
For questions asking for tips on golfing in a specific language, doing well in certain challenge tag, or improving a particular piece of code.
19
questions
9
votes
4
answers
275
views
GolfScript many-items rotation
There isn't a builtin in golfscript which lets you rotate a bigger portion of the stack than the three top-most elements.
It should take one number n as argument and rotate the nth value from the top, ...
-6
votes
0
answers
72
views
Choosing the best approach for developing a system for buyers to sell to multiple sellers on your market place [closed]
I have been messing around with the PayPal API v2, and I have asked a Question with no reply of what to do next once the seller onboards. So then I looked at Braintree and started to get used to that ...
0
votes
1
answer
281
views
How can I reduce the characters in the following python code? [closed]
The following code is 47 characters.
print(("Ekki v","V")["COV"in input()]+"eikur!")
How can it be reduced to 46 or less?
I ...
3
votes
0
answers
103
views
Tips for golfing in Emmental
What general tips do you have for golfing in Emmental? It is a self-modifying language defined by a meta-circular interpreter, so I wonder if there are tips for golfing for this esoteric programming ...
7
votes
2
answers
199
views
Tips for golfing in 𝘈𝘤𝘤\$\it{!!}\$
What general tips do you have for golfing in Acc!!? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Acc!! (e.g. "remove comments&...
6
votes
2
answers
530
views
Situations when recursion helps [closed]
Recursion is actually quite powerful, sometimes its doesn't look like that child problem of itself exist, but recursion is just helpful.
One case per answer.
0
votes
0
answers
158
views
Shortest Float32Array to Int32Array conversion for audio processing
I'm currently converting a Float32Array to an Int32Array for input to a real-time audio raw PCM to MP3 recording application.
<...
4
votes
0
answers
114
views
Electra "Hello World!" [duplicate]
This will be a bit of a different challenge. Back in 2023, I developed a 2D esolang called Electra, and looking back at my hello world program, (which is 582 bytes by the way) I see a lot of room for ...
-2
votes
1
answer
210
views
Solving Reverse Polish Notation with GolfScript and Eval Function
I am exploring a unique approach to the classic problem of Reverse Polish Notation on code.golf. Unlike the conventional solutions, my focus lies on leveraging the ...
8
votes
4
answers
505
views
Tips for golfing in Uiua
What general tips do you have for golfing in Uiua?
I'm looking for ideas that can be applied to code golf problems in general that are specific to Uiua. (e.g. "remove comments" would not be ...
0
votes
0
answers
97
views
Shortest way to print the first 20 numbers in the fibbonacci sequence with python3 [duplicate]
I was wondering if it was possible to make this code even shorter than it already was.
f=lambda x:f(x-1)+f(x-2) if x>1 else 1
[print(f(i))for i in range(20)]
...
6
votes
4
answers
1k
views
Shortest C code to display argv in-order
I recently tried to produce the shortest C code possible to display all its command line arguments (which are stored in argv).
I ended with a relatively small piece of code, and I was wondering if ...
8
votes
1
answer
323
views
Tips for Golfing in Vyxal 3
The reason for this question is because I made a deadlineless bounty and I need a tips question to link in the bounty
Vyxal 3 is the third major version of the Vyxal golfing language. As it is ...
6
votes
0
answers
279
views
Shortest CSS selector to select ALL html elements, without using asterisk *
What is the shortest selector (by character count) to select ALL html elements on a web page, without using asterisk (*)? Some examples are the following:
...
12
votes
7
answers
4k
views
How can I shorten a C code that repeatedly outputs a number?
I wrote a code that separates the numbers from 1 to 9999 by comma
void p(n){printf("%d,",n);if(n<9999){p(n+1);}}main(){p(1);}
Is there a way to make ...