首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
WindedMan
华中科技大学
2021届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(29)
二叉树根节点到叶子节点的所有路径和
0
void solve(TreeNode*root,int &sum,int num){ if(root)num+=root->val; if(root->left==nullptr&&root->right==nullptr)...
发表于 2020-03-20 11:36:23
分割回文串-ii
0
class Solution { bool Judpalstr(string str){ int start=0; int end=str.size()-1; while(start<end){ if(str[st...
发表于 2020-03-18 14:07:02
出现一次的数字
2
//直接异或即可 int singleNumber(int A[], int n) { int one=0; for(int i=0;i<n;i++){ one^=A[i]; } return one; ...
发表于 2020-03-16 22:17:41
重排链表
1
class Solution { ListNode* Rerverse(ListNode*pHead){ ListNode*tail=pHead; while(tail->next)tail=tail->next; while(pH...
发表于 2020-03-11 11:58:02
括号匹配方案
2
#include<iostream> (720)#include<string> #include<stack> using namespace std; int main(){ string s; cin>>s; stack&...
发表于 2020-03-05 13:23:32
字符串编码
0
#include<iostream> (720)#include<string> using namespace std; int main(){ string s; cin>>s; int count=1; string res=...
发表于 2020-03-04 21:30:36
操作序列
0
//利用双向队列 #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; deque<int>dq; int x; bool tag...
发表于 2020-03-03 23:23:52
中缀表达式转后缀表达式
0
//关键是构造一个运算符的优先级函数 #include<iostream> (720)#include<string> #include<stack> using namespace std; //运算符优先级 int f(char c){ int n...
发表于 2020-03-03 23:03:04
死锁
0
示例可以过 ,但是AC不了求大佬指点错在哪 #include<bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; while(N--){ long long L,R,W...
发表于 2020-03-03 21:51:36
树的不同形态
1
//关键是重建一颗二叉树 #include<bits/stdc++.h> using namespace std; struct treeNode{ int val; treeNode*left; treeNode*right; treeNode(in...
发表于 2020-02-29 12:11:58
首页
上一页
1
2
3
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题