摘要: Given a binary tree, determine if it is a complete binary tree. Definition of a complete binary tree from Wikipedia:In a complete binary tree every le 阅读全文
posted @ 2018-12-24 21:31 樱花落舞 阅读(254) 评论(0) 推荐(0) 编辑
摘要: There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupied or vacant changes according to t 阅读全文
posted @ 2018-12-24 21:28 樱花落舞 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 遇见一个问题 如果用一个结构体struct。再用一个ListView,然后使用绑定。 <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmln 阅读全文
posted @ 2018-12-24 15:47 樱花落舞 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 大概需要的win32函数 大概用到的常量 具体细节 以下是本来判断是32还是64位的函数,但现在是判断这个句柄是否存在 到这里,流程大概是完整了,也就是说判断软件键盘是否是窗口可见状态。 当然为了防止意外,在最后面也用以下的函数,不断的去询问窗口列表 实际运用 有时候我们不知道键盘为什么起不来,但又 阅读全文
posted @ 2018-12-24 10:47 樱花落舞 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: Given an array A of integers, a ramp is a tuple (i, j) for which i < j and A[i] <= A[j]. The width of such a ramp is j - i. Find the maximum width of 阅读全文
posted @ 2018-12-24 00:14 樱花落舞 阅读(326) 评论(0) 推荐(0) 编辑
摘要: In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times. Ex 阅读全文
posted @ 2018-12-24 00:07 樱花落舞 阅读(130) 评论(0) 推荐(0) 编辑