首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
onceorange
西安交通大学
2020届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(37)
整数中1出现的次数(从1到n整数中1出现的次数)
0
class Solution { public: int NumberOf1Between1AndN_Solution(int n) { if(n==0||n<0) return 0; if(n>1&&...
发表于 2019-08-21 23:43:50
考试策略
0
基础的动态规划 #include<iostream> using namespace std; #include<vector> int max(int a,int b) { return a>b?a:b; } int max(int a,int b,int ...
发表于 2019-07-27 21:14:53
连续子数组的最大和
0
class Solution { public: int FindGreatestSumOfSubArray(vector<int> array) { if(array.size()==0) return 0; int ma...
发表于 2019-07-27 18:22:32
从上往下打印二叉树
0
class Solution { public: vector<int> PrintFromTopToBottom(TreeNode* root) { deque<TreeNode*>de; vector<in...
发表于 2019-07-25 22:47:40
包含min函数的栈
0
class Solution { public: stack<int>st1,st2; void push(int value) { st1.push(value); if(st2.empty()) st2.push...
发表于 2019-07-25 21:12:53
数组中出现次数超过一半的数字
0
class Solution { public: int MoreThanHalfNum_Solution(vector<int> numbers) { int a[1000]={0}; for(int i=0;i<numbers.size(...
发表于 2019-06-30 15:28:34
顺时针打印矩阵
0
class Solution { public: vector<int> printMatrix(vector<vector<int> > matrix) { int a=0,b=0,c=matrix.size()-1,d=matrix[...
发表于 2019-06-30 14:29:42
反转链表
0
class Solution { public: ListNode* ReverseList(ListNode* pHead) { if(pHead==NULL) return NULL; ListNode*pnode=pH...
发表于 2019-03-13 16:02:03
链表中环的入口结点
0
class Solution { public: ListNode* EntryNodeOfLoop(ListNode* pHead) { if(pHead==NULL||pHead->next==NULL) return N...
发表于 2019-03-13 15:53:06
表示数字
0
#include<string> using namespace std; int main() { string str; while(cin>>str) { string out; for(int i=0;i<...
发表于 2019-01-21 17:30:32
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题