首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
忆水寒
宁波大学
2017届
C++工程师
颓废躺~
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(203)
丑数
0
class Solution { public: int GetUglyNumber_Solution(int index) { if(index<=0) return 0; queue<int> q2; queue<int> q3; ...
发表于 2016-07-24 11:11:10
替换空格
12
string replaceSpace(string iniString, int length) { string newString; for(int i=0;i<length;i++) { if(iniString[i]==' ') { //newSt...
发表于 2016-07-23 23:32:54
两个链表的第一个公共结点
1
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: int len(ListNod...
发表于 2016-07-23 22:54:59
整型数组合并
2
#include<iostream> #include<string> #include<vector> #include <algorithm> using namespace std; int main() { int M,N; vector&...
发表于 2016-07-22 21:08:12
名字的漂亮度
0
#include<iostream> #include<string> #include <algorithm> using namespace std; /*华为上机练习,名字的漂亮度*/ int BeautifyOfOneName(string str) {...
发表于 2016-07-22 20:32:36
删除字符串中出现次数最少的字符
1
//大家好,我是忆水寒,欢迎查看我的代码. #include<iostream> #include<string> using namespace std; /*删除字符串中出现次数最少的字符*/ string deleteLessChar(string str) { ...
发表于 2016-07-22 20:07:09
用两个栈实现队列
1
import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new S...
发表于 2016-07-22 14:38:35
最大连续数列和
1
class MaxSum { public: int getMaxSum(vector<int> A, int n) { // write code here if(n<=0) return 0; if(n==1) retur...
发表于 2016-07-22 14:31:13
空格替换
6
class Replacement { public: string replaceSpace(string iniString, int length) { // write code here string newString; for(int i=0;i<...
发表于 2016-07-22 14:13:02
回文链表
0
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class Palindrome { public: int len(L...
发表于 2016-07-22 10:32:59
首页
上一页
11
12
13
14
15
16
17
18
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题