s摸鱼大师s
s摸鱼大师s
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
s摸鱼大师s的博客
全部文章
(共2篇)
题解 | #在二叉树中找到两个节点的最近公共祖先#
class Solution { public: /** * * @param root TreeNode类 * @param o1 int整型 * @param o2 int整型 * @return int整型 */ void func(TreeNode* root, int ...
C++
2022-01-16
2
434
题解 | #判断链表中是否有环#
class Solution { public: bool hasCycle(ListNode *head) { //链表不为空 if(head == nullptr || head->next == nullptr ) { return fal...
C++
2022-01-13
5
604