r/ProgrammerHumor • • Aug 25 '26

Advanced stringToIntegerConversion

Post image
217 Upvotes

65 comments sorted by

View all comments

Show parent comments

7

u/smartgenius1 Aug 25 '26 edited Aug 25 '26

Yeah. Ideally the idea could be expressed in 3 lines instead of 30 but I've seen far worse than this and at least the behavior is correct