You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticArrayList<Integer> topView(Noderoot){ //needa incorporate depth tracking to ensure that shallower nodes are processed porperly and not overshadowed.
50
+
/*
51
+
DFS Approach, needa incorporate depth tracking
52
+
static ArrayList<Integer> topViewOfBT(Node root){
42
53
int hd = 0;
43
54
TreeMap<Integer, Integer> map = new TreeMap<Integer, Integer>(); //TreeMap over HashMap at it sorts the hd
0 commit comments