MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y5vntt/technicallycorrect/19t898frxd2ys/?context=3
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 19h ago
42 comments sorted by
View all comments
Show parent comment
4
It kind of bothers me how the variable result is redundant. You could have just printed each character directly instead of accumulating them in a string.
result
1 u/zx48 8h ago Oh yeah, nice optimisation. Would save a bit of memory too 😁
1
Oh yeah, nice optimisation. Would save a bit of memory too 😁
View all comments
Show parent comment
4
u/radobot 9h ago
It kind of bothers me how the variable
resultis redundant. You could have just printed each character directly instead of accumulating them in a string.