梁伟杰_软工
梁伟杰_软工
全部文章
分类
归档
标签
去牛客网
登录
/
注册
梁伟杰_软工的博客
全部文章
(共5篇)
题解 | 最长的连续元素序列长度
#include <algorithm> #include <vector> class Solution { public: /** * * @param num int整型vector * @return int整型 *...
2025-05-16
0
35
题解 | 出现一次的数字ii
#include <algorithm> class Solution { public: /** * * @param A int整型一维数组 * @param n int A数组长度 * @return int整型 */ ...
2025-05-14
0
23
题解 | 判断二叉树是否相等
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ #include <cstddef> class Solution { public:...
2025-05-13
0
29
题解 | 判断链表中是否有环
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
2025-05-10
0
32
题解 | 求二叉树的前序遍历
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ #include <cstddef> #include <vector> ...
2025-05-10
0
28