自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

acoolion的专栏

acoolion的成长之路

  • 博客(7)
  • 收藏
  • 关注

原创 LeetCode 406.根据身高重建队列

这道题目,有两个考点: 二维数组的针对某一位的排序 排序之后插入的方法 class Solution { public int[][] reconstructQueue(int[][] people) { Arrays.sort(people, 0, people.length, new MyComparator()); List&l...

2019-12-09 19:28:57 211

原创 Leetcode 739.每日温度

// this is a problem of stack class Solution { public int[] dailyTemperatures(int[] T) { int len = T.length; int[] res = new int[len]; Stack<Integer> st = new Stack&...

2019-12-06 15:22:16 66

原创 Leecode 7.整数反转

class Solution { public int reverse(int x) { // here we should know that -123 % 10 = -3 here in Java and C++ int ans = 0; while (x != 0) { in...

2019-12-05 17:59:32 55

原创 Leetcode 64. 最小路径和

class Solution { public int minPathSum(int[][] grid) { if (grid.length == 0) return 0; if (grid[0].length == 0) return 0; int row = grid.length; int col = grid[0]....

2019-09-30 17:06:24 54

原创 Leetcode 30. 串联所有单词的子串 (O(n * m))

class Solution { public List<Integer> findSubstring(String s, String[] words) { List<Integer> res = new ArrayList<Integer>(); int num = words.length; if ...

2019-09-26 10:30:15 79

原创 LeetCode 239. Sliding Window Maximum

class Solution { public int[] maxSlidingWindow(int[] nums, int k) { if (nums.length == 0) return new int[0]; int res_length = nums.length - k + 1; int[] res = ...

2019-08-22 20:46:44 55

原创 LeetCode 2. 两数相加

/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ class Solution { public ListNode addTwoNumb...

2019-08-21 20:09:08 67

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除