File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 44
55/**
66 * 100. Same Tree
7+ *
78 * Given two binary trees, write a function to check if they are equal or not.
89 * Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
910 */
Original file line number Diff line number Diff line change 44
55/**
66 * 235. Lowest Common Ancestor of a Binary Search Tree
7+ *
78 * Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.
89 * According to the definition of LCA on Wikipedia:
910 * “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 44
55/**
66 * 236. Lowest Common Ancestor of a Binary Tree
7+ *
78 * Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
89 * According to the definition of LCA on Wikipedia:
910 * “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