首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
nbgao
杭州电子科技大学
2022届
Java工程师
Studying & Thinking
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(1058)
三角形
0
class Solution { public: int minimumTotal(vector<vector<int> > &***) { int n = ***.size(); vector<int> dp(***.back...
发表于 2017-08-24 00:52:04
不同的子序列
1
class Solution { public: int numDistinct(string S, string T) { int l = T.length(); vector<int> result(l+1); result[0...
发表于 2017-08-23 01:04:03
划分链表
1
class Solution { public: ListNode *partition(ListNode *head, int x) { if(head == NULL) return NULL; ListNode *L1 = new Li...
发表于 2017-08-23 00:44:11
删除链表的倒数第n个节点
1
class Solution { public: ListNode *removeNthFromEnd(ListNode *head, int n) { if(head == NULL || n<0) return head; int ...
发表于 2017-08-22 07:37:24
二叉树的后序遍历
2
class Solution { public: vector<int> postorderTraversal(TreeNode *root) { vector<int> result; if(root == NULL) ...
发表于 2017-08-21 01:30:57
电话字母的组合
1
class Solution { public: vector<string> letterCombinations(string digits) { string n2w[12] = {"","","abc&qu...
发表于 2017-08-20 01:18:49
Z字形字符串
1
class Solution { public: string convert(string s, int nRows) { if(nRows <= 1) return s; vector<string> z(nRows,&...
发表于 2017-08-20 01:00:54
链表中环的入口节点
2
class Solution { public: ListNode *detectCycle(ListNode *head) { if(head == NULL) return NULL; ListNode *p = head, *q = ...
发表于 2017-08-19 04:13:30
直方图中的最大矩形
1
class Solution { public: int largestRectangleArea(vector<int> &height) { int n = height.size(); if(n == 0) retu...
发表于 2017-08-19 04:12:57
不同的二叉搜索树 ii
3
class Solution { public: vector<TreeNode *> generateTrees(int n) { return Create(1,n); } vector<TreeNode *> Create(int...
发表于 2017-08-18 01:39:48
首页
上一页
96
97
98
99
100
101
102
103
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题