File tree 3 files changed +3
-0
lines changed
src/main/java/com/fishercoder/solutions
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
/**
6
6
* 100. Same Tree
7
+ *
7
8
* Given two binary trees, write a function to check if they are equal or not.
8
9
* Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
9
10
*/
Original file line number Diff line number Diff line change 4
4
5
5
/**
6
6
* 235. Lowest Common Ancestor of a Binary Search Tree
7
+ *
7
8
* Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.
8
9
* According to the definition of LCA on Wikipedia:
9
10
* “The lowest common ancestor is defined between two nodes v and w as the lowest node in T that has both v and w as descendants
Original file line number Diff line number Diff line change 4
4
5
5
/**
6
6
* 236. Lowest Common Ancestor of a Binary Tree
7
+ *
7
8
* Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
8
9
* According to the definition of LCA on Wikipedia:
9
10
* “The lowest common ancestor is defined between two nodes v and w as the lowest node in T
You can’t perform that action at this time.
0 commit comments