加载中
《Java8实战》笔记(10):用Optional取代null

用Optional取代null 本文的代码 众所周知,对任何一位Java程序员来说,无论是初出茅庐的素人,还是久经江湖的老司机,NullPointerException都是他心中的痛,可是我们又无能为力,因为这就是我...

LeetCode - Easy - 1266. Minimum Time Visiting All Points

Topic Array Geometry Description https://leetcode.com/problems/minimum-time-visiting-all-points/ On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]....

2021/05/26 19:46
101
LeetCode - Easy - 566. Reshape the Matrix

Topic Array Description https://leetcode.com/problems/reshape-the-matrix/ In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one wi...

2021/05/23 00:35
69
LeetCode - Easy - 572. Subtree of Another Tree

Topic Tree Description https://leetcode.com/problems/subtree-of-another-tree/ Given the roots of two binary trees root and subRoot, return true if there is a subtree of root wit...

2021/05/22 16:44
46
LeetCode - Easy - 485. Max Consecutive Ones

Topic Array Description https://leetcode.com/problems/max-consecutive-ones/ Given a binary array nums, return the maximum number of consecutive 1's in the array. Example 1: Inpu...

2021/04/21 04:12
22
LeetCode - Medium - 47. Permutations II

Topic Backtracking Description https://leetcode.com/problems/permutations-ii/ Given a collection of numbers, nums, that might contain duplicates, return all possible unique perm...

LeetCode - Easy - 1732. Find the Highest Altitude

Topic Array Description https://leetcode.com/problems/find-the-highest-altitude/ There is a biker going on a road trip. The road trip consists of n + 1 points at different altit...

2021/04/08 23:38
127

没有更多内容

加载失败,请刷新页面

返回顶部
顶部