
Leetcode
Jianghong_Lv
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode——堆栈算法题
LeetCode——堆栈算法题堆栈 堆 栈 我的代码: 用的标准的数组表示的栈结构。 class MinStack { private int N; private int[] arr; /** initialize your data structure here. */ public MinStack() { N=0; arr=...原创 2019-12-11 18:17:18 · 315 阅读 · 0 评论 -
LeeCode——Array
Easy Move Zeros 代码: public class Solution { public static void moveZeroes(int[] nums) { if (nums == null || nums.length == 0) { return; } int cur = 0;//该指针等到0出现的那...原创 2019-11-28 21:18:31 · 176 阅读 · 0 评论 -
Leetcode——Sort算法题
Easy 350. Intersection of Two Arrays II Given two arrays, write a function to compute their intersection. 正确版本: import java.util.ArrayList; import java.util.HashMap; public class Solution { publ...原创 2019-11-27 18:19:33 · 468 阅读 · 0 评论