Skip to content

Instantly share code, notes, and snippets.

View fnalmeidap's full-sized avatar
🎯
Focusing

Felipe Nunes fnalmeidap

🎯
Focusing
View GitHub Profile
# Single node definition
struct Node {
int value;
Node *left;
Node *right;
};
class Solution {
public:
Node* LowestCommonAncestor(Node* root, Node* p, Node* q){