LeetCode of algorithms with Java solution 二分查找 [704] Binary Search [441...

收录了7篇文章 · 1人关注
LeetCode of algorithms with Java solution 二分查找 [704] Binary Search [441...
不重叠的区间个数 Input: [ [1,2], [1,2], [1,2] ] Output: 2 Explanation: You need ...
投飞镖刺破气球 Input:[[10,16], [2,8], [1,6], [7,12]] Output:2 题目描述:气球在一个水平数轴上摆放...
按颜色进行排序 Input: [2,0,2,1,1,0]Output: [0,0,1,1,2,2] 中心思想:三向切分快速排序 用两个指针lef...
判断链表是否存在环 使用双指针,一个指针每次移动一个节点,一个指针每次移动两个节点,如果存在环,那么这两个指针一定会相遇。
删除链表的倒数第 n 个节点 Given linked list: 1->2->3->4->5, and n = 2.After removin...
归并两个有序的链表 21. Merge Two Sorted Lists (Easy)
专题公告
每天刷一道leetcode题,保持状态