
February 6th, 2013, 01:33 PM
|
 |
Contributing User
|
|
|
|
|
Since you're trying to write in python, learn about the various object containers. dict , list , set , frozenset , tuple , str , and all those I've overlooked like bytes , unicode .
Obviously, that is, obviously to a python programmer, you have a data structure that is more complicated than a unicode string whereas the implementation of the algorithmic idea I provided will not work with nested structures. Well, I won't count ['a','b'] as a nested structure.
|