Leetcode solved by JAVA
写代码一时爽,一直写一直爽 调试火葬场
10/03/2019:
Q0965: https://leetcode.com/problems/univalued-binary-tree/ Q0969: https://leetcode.com/problems/pancake-sorting/ Q0994: https://leetcode.com/problems/rotting-oranges/
965: 简单递归 969: 可以通过最多两次旋转操作将当前未解决元素移至最后一位,重复此步骤即可。 994: BFS Java队列操作不太熟练- - java可以通过LinkedList实现队列 .offer() 添加元素 .poll() 返回当前队首并删除 .pop() 删除队首 剩下的之后补充
Unsolved: including a stream to sort array form large to small.