君潇然
君潇然
全部文章
分类
归档
标签
去牛客网
登录
/
注册
君潇然的博客
全部文章
(共5篇)
题解 | #杨辉三角-ii#
#include <vector> class Solution { public: /** * * @param rowIndex int整型 * @return int整型vector */ vector<int>...
2023-05-22
0
238
题解 | #最长的连续元素序列长度#
class Solution { public: /** * * @param num int整型vector * @return int整型 */ int longestConsecutive(vector<int>& num...
2023-05-21
0
285
题解 | #填充每个节点指向最右节点的next指针#
/** * Definition for binary tree with next pointer. * struct TreeLinkNode { * int val; * TreeLinkNode *left, *right, *next; * TreeLinkNode(int...
2023-04-07
0
270
题解 | #填充每个节点指向最右节点的next指针#
/** * Definition for binary tree with next pointer. * struct TreeLinkNode { * int val; * TreeLinkNode *left, *right, *next; * TreeLinkNode(int...
2023-04-07
0
276
题解 | #二进制插入#
import java.util.*; public class BinInsert { public int binInsert(int n, int m, int j, int i) { while(j!=0) { m*=2; ...
2023-03-30
1
251