On 11/25/2014 07:44 PM, Tim Chase wrote:
On 2014-11-25 19:20, Tim Daneliuk wrote:
hen you find any opener, you seek its
corresponding closer, and then special-case /* to count any
additional /* and look for a */ for each one */ .
That's more or less where I was headed. I just wanted something
less brute force :)
This seems to directly conflict with your initial request that
These may be nested.
If they can't be nested, then it simplifies the problem immensely.
-tkc
What I meant was that, to handle nesting, the brute force approach is just
to just to use a stack to maintain state.
--
----------------------------------------------------------------------------
Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/
--
https://mail.python.org/mailman/listinfo/python-list