摘要: 程序执行结果: 1.使用wait(),notify(),notifyAll()方法之前,要获取同一个对象的锁。 2.调用wait()方法之后,线程会从RUNABLE状态变为WAITING状态,并会释放对象锁,并会将线程移入到对象的等待队列中。 3.notify()和notifyAll()调用之后,等 阅读全文
posted @ 2019-03-29 15:31 小白兔云 阅读(655) 评论(0) 推荐(0)
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2019-03-29 10:43 小白兔云 阅读(154) 评论(0) 推荐(0)
摘要: The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following seque 阅读全文
posted @ 2019-03-29 10:07 小白兔云 阅读(149) 评论(0) 推荐(0)