#Iterating over a string

8 messages · Page 1 of 1 (latest)

lethal cipher
old inletBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

lethal cipher
#

Weird thing is that Auxiliary Space and Time Complexity are the same for both, so I have no idea what the advantage of the auto-keyword is for

jovial mesa
#

The one with auto uses a range based for loop

#

Which is easier to read and faster to write

#

Also you don’t need the length of the string

lethal cipher
#

Ah that makes more sense now approved

#

!solved