Discussing code

14 views
Skip to first unread message

Manor Perets

unread,
Dec 2, 2012, 7:58:23 AM12/2/12
to CPP forum
Hey,
When my code is accepted in CodeLab I know it is logically correct. And even though CodeLab is so enthusiastic and says, "Fascinating Solution!" I often wonder if I've written it in some backwards, retarded way and perhaps there's a clearer and straightforward option. Do you ever get that?
I'd love to discuss and compare logic and train of thought.
For example this one, about a static local variable, 11084. (well, this is a simple one, I've had weird ones)
Inline image 1
Is there a much more straightforward way to code this?

Best wishes,
Manor
image.png
image.png
Reply all
Reply to author
Forward
0 new messages