摘要: Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: Input: [1,1,2] Output: [ [1,1,2], [1,2, 阅读全文
posted @ 2019-03-26 10:28 小白兔云 阅读(147) 评论(0) 推荐(0)
摘要: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1: In 阅读全文
posted @ 2019-03-25 19:26 小白兔云 阅读(110) 评论(0) 推荐(0)
摘要: Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb 阅读全文
posted @ 2019-03-25 17:53 小白兔云 阅读(149) 评论(0) 推荐(0)
摘要: Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the  阅读全文
posted @ 2019-03-25 17:28 小白兔云 阅读(119) 评论(0) 推荐(0)
摘要: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime com 阅读全文
posted @ 2019-03-24 19:52 小白兔云 阅读(134) 评论(0) 推荐(0)
摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). Yo 阅读全文
posted @ 2019-03-24 19:42 小白兔云 阅读(149) 评论(0) 推荐(0)
摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib 阅读全文
posted @ 2019-03-22 21:30 小白兔云 阅读(144) 评论(0) 推荐(0)
摘要: [29] Divide Two Integers https://leetcode.com/problems/divide-two-integers/description/Given two integers dividend and divisor, divide two integers wi 阅读全文
posted @ 2019-03-22 20:50 小白兔云 阅读(139) 评论(0) 推荐(0)
摘要: 这是Java中的一种线程让步方法,让Java中的线程从执行状态变成就绪状态,然后处理器再从就绪队列中挑选线程进行执行(优先级大的,被挑选的概率较大),这种转换也不确定,让或者不让都是取决与处理器,线程可能继续占有处理器。 看《Java并发编程艺术》这本书,里面有用到Thread.yield方法,来测 阅读全文
posted @ 2019-03-22 10:29 小白兔云 阅读(728) 评论(0) 推荐(0)
摘要: LinkedHashSet是HashSet和LinkList结合产生的集合,集合中的元素互不相同,且元素采用双向链表进行连接。 1.定义 LinkedHashSet继承了HashSet并且实现了Set,Cloneable,Serializable接口。 2.构造函数 这里调用的父类的构造函数,调用的 阅读全文
posted @ 2019-03-21 20:28 小白兔云 阅读(153) 评论(0) 推荐(0)