NicolaBernini / CodingChallengesSolutions

CPP Code Snippets with comments
4 stars 4 forks source link

Coding Challenge - Iterator over a nested data structure #23

Open NicolaBernini opened 4 years ago

NicolaBernini commented 4 years ago

Overview

Design a data structure able to represent a sequence of nested values like the following one

[1,2],3,[4,5],[], [6]

and an iterator able to navigate that data structure and to return the list of elements without nesting hence like the following one

1,2,3,4,5,,6,

Solutions

Solutions Page