Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. Array = [ 2, 3, 4, 7, 1, 4, 7, 4, 2, 5, 7, 9, 3, 2, 5, 7 ];
  2. object(GenerateBinaryTree)#1 (1) {
  3. ["root"]=>
  4. object(NodeOfTree)#2 (4) {
  5. ["tmp"]=>
  6. int(2)
  7. ["left"]=>
  8. object(NodeOfTree)#6 (4) {
  9. ["tmp"]=>
  10. int(1)
  11. ["left"]=>
  12. NULL
  13. ["right"]=>
  14. NULL
  15. ["depth"]=>
  16. NULL
  17. }
  18. ["right"]=>
  19. object(NodeOfTree)#3 (4) {
  20. ["tmp"]=>
  21. int(3)
  22. ["left"]=>
  23. NULL
  24. ["right"]=>
  25. object(NodeOfTree)#4 (4) {
  26. ["tmp"]=>
  27. int(4)
  28. ["left"]=>
  29. NULL
  30. ["right"]=>
  31. object(NodeOfTree)#5 (4) {
  32. ["tmp"]=>
  33. int(7)
  34. ["left"]=>
  35. object(NodeOfTree)#7 (4) {
  36. ["tmp"]=>
  37. int(5)
  38. ["left"]=>
  39. NULL
  40. ["right"]=>
  41. NULL
  42. ["depth"]=>
  43. NULL
  44. }
  45. ["right"]=>
  46. object(NodeOfTree)#8 (4) {
  47. ["tmp"]=>
  48. int(9)
  49. ["left"]=>
  50. NULL
  51. ["right"]=>
  52. NULL
  53. ["depth"]=>
  54. NULL
  55. }
  56. ["depth"]=>
  57. NULL
  58. }
  59. ["depth"]=>
  60. NULL
  61. }
  62. ["depth"]=>
  63. NULL
  64. }
  65. ["depth"]=>
  66. NULL
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement