首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
黄色变白色
湖南理工学院
2018届
语音/视频/图形开发
想换值5斗米的工作
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(72)
反转链表
0
递归一开始没想清楚,仔细想了下,类似下面的图一样 /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ c...
发表于 2023-01-31 21:30:50
链表内指定区间反转
1
用栈来翻转链表 ListNode* reverseBetween(ListNode* head, int m, int n) { if(head == nullptr || m <= 0 || n <= 0) return head; ...
发表于 2020-09-06 15:42:18
买卖股票的最好时机(一)
1
class Solution { public: int maxProfit(vector<int> &prices) { int len = prices.size(); int tempIncome = 0; int m...
发表于 2020-09-04 14:11:20
合并两个有序的数组
1
从A和B数组的尾端开始比较,逐一把大数插入A数组,用三个坐标值记住位置 class Solution { public: void merge(int A[], int m, int B[], int n) { if(n <= 0) retu...
发表于 2020-09-04 11:39:08
链表中环的入口结点
1
遇事不决就用map,用链表地址做map的键值 class Solution { public: ListNode* EntryNodeOfLoop(ListNode* pHead) { if(pHead == nullptr) re...
发表于 2020-08-26 11:27:45
左旋转字符串
0
class Solution { public: string LeftRotateString(string str, int n) { if(str.empty() == 1 || n == 0 || n == str.size()) return...
发表于 2020-08-24 16:47:25
有声明 int fun6( int ); int (*pf)(int) = fun6; 在下列选项中,正确的调用是( )。
2
在Dev-c++下加c++ 11编译选项,&a不被认为是int 在纯c环境下编译
发表于 2020-04-23 23:50:37
下列选项中,降低进程优先级的合理时机是?
0
我觉得选C,长期在就绪也就是等待,在不升高优先级就要饿死了
发表于 2020-03-04 13:54:37
此设计模式定义一组可选算法,执行逻辑时根据环境选择算法,不同算法产生不同输...
0
抽象工厂模式(Abstract Factory Pattern)是围绕一个超级工厂创建其他工厂。该超级工厂又称为其他工厂的工厂。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。 在抽象工厂模式中,接口是负责创建一个相关对象的工厂,不需要显式指定它们的类。每个生成的工厂都能按照工...
发表于 2020-02-26 14:11:48
c++ STl中list使用的迭代器类型为
5
输入迭代器input_iterator: 只读,且只能一次读操作,支持操作:++p,p++,!=,==,=*p,p->; 输出迭代器output_iterator: 只写,且只能一次写操作,支持操作:++p,p++; 正向迭代器forward_iterator: 可多次...
发表于 2020-02-26 14:10:26
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题