We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c17c26f commit 7066a84Copy full SHA for 7066a84
236/Solution.java
@@ -1,3 +1,5 @@
1
+// https://www.youtube.com/watch?v=WqNULaUhPCc
2
+
3
class Solution {
4
public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {
5
if (root == null || root == p || root == q) return root;
0 commit comments