Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 374 Bytes

File metadata and controls

13 lines (9 loc) · 374 Bytes

Challenge Summary

create a function that takes 2 binary trees and return the values that exisists in both of them

Whiteboard Process

image

Approach & Efficiency

  • time: O(n)
  • space O(n)

Solution:

  • tree_intersection: that takes an argument a 2 binary tree and return the values that exisists in both of them