首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
张佃鹏
杭州电子科技大学
2016届
C++工程师
牛客带我每天进步一小步
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(224)
组合
0
import java.util.ArrayList; public class Solution { public ArrayList<ArrayList<Integer>> combine(int n, int k) { ArrayList<...
发表于 2019-11-20 09:58:30
单词搜索
0
public class Solution { public boolean exist(char[][] board, String word) { int width = board.length, height = board[0] == null ? 0 : boar...
发表于 2019-11-20 09:16:58
删除有序链表中重复的元素-I
0
public class Solution { public ListNode deleteDuplicates(ListNode head) { ListNode emptyNode = new ListNode(Integer.MIN_VALUE); em...
发表于 2019-11-19 22:29:53
删除有序链表中重复的元素-II
0
public class Solution { public ListNode deleteDuplicates(ListNode head) { ListNode emptyNode = new ListNode(Integer.MIN_VALUE), preNode = ...
发表于 2019-11-19 22:26:19
最大的长方形
0
//最简代码在这里: import java.util.Stack; public class Solution { public int maximalRectangle(char[][] matrix) { if(matrix.length == 0 || matrix...
发表于 2019-11-19 11:44:51
直方图中的最大矩形
0
import java.util.Stack; public class Solution { public int largestRectangleArea(int[] height) { Stack<Integer> st = new Stack<Int...
发表于 2019-11-19 10:39:26
划分链表
0
public class Solution { public ListNode partition(ListNode head, int x) { ListNode emptyNode = new ListNode(-1), insertHead = null; ...
发表于 2019-11-19 09:08:06
合并两个有序的数组
0
public class Solution { public void merge(int A[], int m, int B[], int n) { int i = m - 1, j = n - 1; while(i >= 0 && j...
发表于 2019-11-18 08:55:53
格雷码
0
import java.util.ArrayList; public class Solution { public ArrayList<Integer> grayCode(int n) { ArrayList<Integer> arr = new A...
发表于 2019-11-13 09:14:42
解密
1
public class Solution { public int numDecodings(String s) { int size = s.length(); if(size == 0) return 0; int[] dp = new ...
发表于 2019-11-06 12:15:37
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题