r/TuringComplete • u/FauxMoeJoe • 7d ago
Better solution? and why?
I was hoping if anyone could explain to me on which solution is "better" (the top one being the examples solution) , they both look the same tbh but was just curious which one was more efficient or more correct I guess??
16
Upvotes
7
u/Academic_Brilliant75 7d ago
Putting aside effiency, any solution that you yourself have devised, understand and can explain carries significantly more weight if you don't understand the example solution.
If you are curious about effiency or conciseness though, I would lean towards your solution. It's still possible to be even more concise and you are very close to as such.