Android学习笔记(5)----启动 Theme.Dialog 主题的Activity时程序崩溃的解决办法
摘要:新建了一个Android Studio工程,在MainActivity的主界面中添加了两个按钮,点击其中一个按钮用来启动 NormalActivity,点击另一按钮用来启动DialogActivity. 其中,NormalActivity和DialogActivity都是很简单的界面,只是在Andr
阅读全文
posted @
2017-02-27 21:03
HorseShoe2016
阅读(4906)
推荐(1) 编辑
LeetCode赛题515----Find Largest Element in Each Row
摘要:问题描述 You need to find the largest element in each row of a Binary Tree. Example: Input: 1 / \ 2 3 / \ \ 5 3 9 Output: [1, 3, 9] 算法分析 使用两个队列,逐层遍历二叉树的各个
阅读全文
posted @
2017-02-12 15:54
HorseShoe2016
阅读(229)
推荐(0) 编辑
LeetCode赛题----Find Left Most Element
摘要:####问题描述 Given a binary tree, find the left most element in the last row of the tree. #####Example 1: Input: 2 / \ 1 3 Output: 1 #####Example 2: Input
阅读全文
posted @
2017-02-12 15:44
HorseShoe2016
阅读(312)
推荐(0) 编辑