【题目链接】The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors th...
分类:
其他好文 时间:
2015-09-01 12:26:34
阅读次数:
155
Question:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of t...
分类:
其他好文 时间:
2015-09-01 12:21:29
阅读次数:
128
题目You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:
Could you do this in-place?分析本地使得二维矩阵,旋转90角度。通过实际数据分析,通过两个步骤的元素交换可实现目标:
按照主对角线,将对称元素交换
按照...
分类:
其他好文 时间:
2015-08-31 21:43:04
阅读次数:
137
一.Setup time和hold time对频率的影响 setup time和hold up time是由器件cell决定的,一般小于1~2ns,并不随着电路设计的改变而改变。 时钟频率计算方法如下:在不考虑时钟延时抖动等条件下,理想的说:一个信号从触发器的D端到Q端的延时假设是Tcell,从Q....
分类:
其他好文 时间:
2015-08-31 17:16:56
阅读次数:
228
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note: Do not modify the linked list. Follow up:Can you ...
分类:
其他好文 时间:
2015-08-31 13:26:30
阅读次数:
215
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 1 /** 2 * Definition for singly-linked ....
分类:
其他好文 时间:
2015-08-31 13:18:58
阅读次数:
141
??
Crawling in process...
Crawling failed Time Limit:1000MS
Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
HDU 1258
Description
Given a s...
分类:
其他好文 时间:
2015-08-31 11:56:30
阅读次数:
174
Combination Sum IIIFind all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each com...
分类:
其他好文 时间:
2015-08-31 11:31:37
阅读次数:
118
这个标题应该说明了我们要做什么了,中文的意思是找出一个2^n的数,使其不小于给出的数字。举个例子吧: 如果给一个数字63,那么我需要获取不小于63的数字,但是这个数字需要是2的n次方了,所以
63对应的是64(2^6)64对应的依旧是64(2^6)100对应的是128(2^7)
问题来了:
怎么快速的计算出这个结果呢?
可能首先浮现在我们眼前的可能是计算log或者一些其他的...
分类:
其他好文 时间:
2015-08-30 23:15:29
阅读次数:
195
1、viewGroup可以添加控件,也可以用添加xml布局文件,在本次实验中将新闻的menu(scrollView布局文件)和正文(mainnews)加入到继承ViewGroup的控件中,但不明白为什么scrollview的宽度和下滑属性没了。导致不能下滑。2了解了groupView的原理,并且根据...
分类:
其他好文 时间:
2015-08-30 23:02:23
阅读次数:
287