橙子爱吃桃子
橙子爱吃桃子
全部文章
题解
C++字符串笔记(1)
归档
标签
去牛客网
登录
/
注册
橙子爱吃桃子的博客
全部文章
/ 题解
(共70篇)
C++/代码:
C++/二分法/代码: class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { vector<int> nums = rotateArray; ...
2020-04-24
2
744
C++/代码:
C++/代码: class Solution { public: int Fibonacci(int n) { int a = 0,b = 1; //第0项为0.第1项为1 while(n --) { //先执行后减 int c = a...
2020-04-24
1
592
C++/代码:
C++/代码: class Solution { public: int Fibonacci(int n) { int a = 0,b = 1; //第0项为0.第1项为1 while(n --) { //先执行后减 int c = a...
2020-04-24
6
905
C++/代码:
C++/代码: class Solution { public: void push(int node) { stack1.push(node); } void copy (stack<int> &a,stack<int> &a...
2020-04-24
4
1610
C++/代码:
C++/代码: class Solution { public: TreeLinkNode* GetNext(TreeLinkNode* pNode) { if(pNode->right) { pNode = pNode->righ...
2020-04-23
8
961
C++/代码:
C++/代码: class Solution { public: map<int,int> hash; //用hash算法 vector<int> preorder,inorder; //定义全局变量 TreeNode* reConstructBina...
2020-04-23
1
781
C++/题解/代码:
C++/题解:先从头到尾遍历,后翻转;C++/代码: class Solution { public: vector<int> printListFromTailToHead(ListNode* head) { vector<int> res; ...
2020-04-23
2
782
C++/题解/代码:
C++/题解:先转为string,然后处理完成后再转为char *。但不是以返回值的形式,还要利用好原来的空间,用strcpy实现之。C++/代码: class Solution { public: void replaceSpace(char *str,int length) { ...
2020-04-22
55
1014
C++/代码:
C++/代码: class Solution { public: bool Find(int target, vector<vector<int> > array) { if (array.empty() || array[0].empty()) re...
2020-04-22
1
794
C++/代码:
C++/代码 class Solution { public: // Parameters: // numbers: an array of integers // length: the length of array numb...
2020-04-21
1
627
首页
上一页
1
2
3
4
5
6
7
下一页
末页