Skip to content

Instantly share code, notes, and snippets.

@musicm122
Created July 27, 2014 23:49
Show Gist options
  • Save musicm122/2d50540dd6ac967892a9 to your computer and use it in GitHub Desktop.
Save musicm122/2d50540dd6ac967892a9 to your computer and use it in GitHub Desktop.
Node5_recursive
public static void RecurseSet(this Node node, List<string> vals)
{
Node tNode;
for(var i=0;i&lt;vals.Count();i++)
{
tNode = new Node();
tNode.Value = vals[i];
node.Right = tNode;
vals.Remove(vals[i]);
RecurseSet(tNode,vals);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment