Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public static void PrintAllLeft(BinNode<int> head)
  2. {
  3. if(head!=null)
  4. {
  5. if(head.HasLeft())
  6. {
  7. Console.WriteLine(head.GetLeft())
  8. }
  9. PrintAllLeft(head.GetLeft())
  10. PrintAllLeft(head.GetRight())
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement