Inode
{
IList GetAllChildren();
string GetText();
INode GetParent();
}
The query can be across text nodes as show in the below example Hello there should return 2 nodes.
Ex :
div
textnode /b
Hello There
2a. Given a sorted array, convert it into minimum height BST.
2b. Given K lists implement HasNext and Next() methods.
Ex: Given lists a, b ,c, the first next() will return first element of a, then b, and c..and back to a.
Ex : Given a tree like and exclude list contains C and D. the return will be a cloned tree containing AB, G, H , E. This is a simple use case but you can imagine more complex scenario.
A
B C
D E
G H