in reply to Section Handling - Nested
In your output, where is the last "data data data data" line coming from? In the input there are 7 such lines, in the output, there are 8!
This is a really nice question and can be very elegantly solved using an array as a stack.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Section Handling - Nested
by hdb (Monsignor) on Jun 21, 2013 at 13:02 UTC |