首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
杨领well
字节跳动_基础架构_后台开发
西南科技大学
2018届
C++工程师
萌新一枚
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(58)
删除链表的倒数第n个节点
0
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 ...
发表于 2021-04-12 09:28:44
最接近的数
1
// 就是该数二进制相邻的两个排列 class CloseNumber { public: vector<int> getCloseNumber(int x) { string ans0, ans1, temp; while(x)...
发表于 2019-09-09 07:19:30
二进制小数
0
class BinDecimal { public: string printBin(double num) { string ans; int cnt = 0; while (num != 0 && cnt <= 32)...
发表于 2019-09-08 18:21:39
实现二叉树先序,中序和后序遍历
1
/**************************************************************************** ** ** Copyright 2019 yanglingwell@sina.com ** ** Permission is hereby gr...
发表于 2019-08-21 21:51:06
替换空格
0
public class Solution { public String replaceSpace(StringBuffer str) { int idx; while((idx = str.indexOf(" ")) != ...
发表于 2017-04-29 17:42:02
二进制中1的个数
0
// 两行代码 class Solution { public: int NumberOf1(int n) { bitset<100> b((unsigned int)n); return b.count(); } };
发表于 2017-04-10 14:54:56
从尾到头打印链表
1
JAVA: /** * public class ListNode { * int val; * ListNode next = null; * * ListNode(int val) { * this.val = val; *...
发表于 2017-04-10 13:57:44
二维数组中的查找
0
//C++: class Solution { public: //[x0,x1), [y0, y1) bool FindPlus(const vector<vector<int> >& array, int x0, int x1, int y0, i...
发表于 2017-04-10 10:23:09
有向路径检查
0
/* struct UndirectedGraphNode { int label; vector<struct UndirectedGraphNode *> neighbors; UndirectedGraphNode(int x) : label(x) {} ...
发表于 2017-03-04 17:19:40
回文链表
0
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class Palindrome { public: bool isPa...
发表于 2017-03-02 15:39:45
首页
上一页
1
2
3
4
5
6
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题