Swift, Tips for solving data structure and algorithms

Tips for solving data structure and algorithm problems in Swift

Handling String

How to access character?

You can’t access character by integer.

You should use str.index, It’s not good.

Tip, Create a character array.

Comments

Leave a Reply

Discover more from Shawn

Subscribe now to keep reading and get access to the full archive.

Continue reading