摘要: 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)