Engaged Employer
Given an xml document process it and create an in-memory DB for its contents <a> <b> <c>foo</c> </b> <d>bar</d> </a> <e>pqr</e> input (BEGIN, a) (BEGIN,b)..... (TEXT, foo) .....(END, a)
Anonymous
I have created a tree structure and recursively processed each node and returned the root node as output. The question wasn't clear to me. The interviewer wanted an in-memory structure as an output. I was returning a root node while creating children nodes using a switch inside a recursive call. Not sure what he wanted.
Check out your Company Bowl for anonymous work chats.