一只菜弱鸡
一只菜弱鸡
全部文章
分类
未归档(3)
题解(60)
归档
标签
去牛客网
登录
/
注册
一只菜弱鸡的博客
全部文章
(共65篇)
题解 | #链表中环的入口结点#
/* struct ListNode { int val; struct ListNode *next; ...
C++
2022-05-23
0
303
题解 | #左旋转字符串#
用queue,从头移出来的添加到尾部。 class Solution { public: string LeftRotateString(string str, int n) {...
C++
2022-05-23
0
322
题解 | #数组中只出现一次的两个数字#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 &...
C++
2022-05-23
0
361
题解 | #字符串的排列#
class Solution { public: vector<string> Permutation(string str) { &nbs...
C++
2022-05-23
0
291
题解 | #最长不含重复字符的子字符串#
class Solution { public: int lengthOfLongestSubstring(string str) { &n...
C++
2022-05-23
0
317
题解 | #合法IP#
#include <bits/stdc++.h> using namespace std; int main() { string str; ...
C++
2022-05-20
0
442
题解 | #矩阵乘法#
//无脑for循环 #include <iostream> using namespace std; int a[100][100] = {0}, b[100][100] ...
C++
2022-05-20
0
336
题解 | #查找输入整数二进制中1的个数#
#include <iostream> using namespace std; int main() { int a; while(cin&...
C++
2022-05-20
0
316
题解 | #记负均正II#
#include <iostream> #include <vector> using namespace std; int main() { int a;  ...
C++
2022-05-20
0
347
题解 | #输出单向链表中倒数第k个结点#
#include<iostream> using namespace std; struct Node { int iData; struct ...
C++
2022-05-20
1
313
首页
上一页
1
2
3
4
5
6
7
下一页
末页