Mini Parser
Given a nested list of integers represented as a string, implement a parser to deserialize it. Each element is either an integer, or a list — whose elements may also be integers or other lists.
Latest Source Code:
Github: NestedMiniParser.java
Output:
String : [123,[456,[789]]] Parsed: NestedInteger{value=0, list=[NestedInteger{value=123, list=[]}, NestedInteger{value=0, list=[NestedInteger{value=456, list=[]}, NestedInteger{value=0, list=[NestedInteger{value=789, list=[]}]}]}]}