wydxry
wydxry
全部文章
分类
题解(86)
归档
标签
去牛客网
登录
/
注册
wydxry的博客
全部文章
(共91篇)
题解 | #数组中只出现一次的数(其它数出现k次)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param arr intvector * @param k int * @...
C++
2022-04-17
0
327
题解 | #旋转字符串#
class Solution { public: /** * 旋转字符串 * @param A string字符串 * @param B string字符串 * @return bool布尔型 */ bool solve(stri...
C++
2022-04-17
0
299
题解 | #求平方根#
class Solution { public: /** * * @param x int整型 * @return int整型 */ int mysqrt(int x) { // write code here ...
C++
2022-04-16
0
289
题解 | #买卖股票的最好时机(一)#
class Solution { public: /** * * @param prices int整型vector * @return int整型 */ int maxProfit(vector<int>& price...
C++
2022-04-16
0
263
题解 | #去除字符串中重复的字符#
#include <iostream> #include <set> // write your code here...... using namespace std; int main() { char str[100] = { 0 }; cin.g...
C++
2022-04-15
0
350
题解 | #判断元素是否出现#
#include<bits/stdc++.h> using namespace std; int main(){ //write your code here...... int n, m, x; unordered_map<int, int> mp; ...
C++
2022-04-15
0
336
题解 | #智能排队系统#
#include <iostream> #include <deque> using namespace std; class Guest { public: string name; bool vip; Guest(string name, bo...
C++
2022-04-14
0
332
题解 | #数字在升序数组中出现的次数#
class Solution { public: int GetNumberOfK(vector<int> data ,int k) { if (data.size() == 0) return 0; int l = 0, r = data.siz...
C++
2022-04-14
0
359
题解 | #和为S的两个数字#
class Solution { public: vector<int> FindNumbersWithSum(vector<int> array,int sum) { int i = 0, j = array.size() - 1; ...
C++
2022-04-14
0
313
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int** a = new int*[n...
C++
2022-04-12
0
295
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页