题目:Given a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is always valid, 1 ≤ k ≤ BST's t...
分类:
其他好文 时间:
2015-07-14 15:13:55
阅读次数:
98
Problem Description
As we all know, Fat Brother likes MeiZi every much, he always find some topic to talk with her. But as Fat Brother is so low profile that no one knows he is a rich-two-generatio...
分类:
其他好文 时间:
2015-07-14 13:38:51
阅读次数:
150
本文转自http://www.cnblogs.com/always-online/category/598553.html一、微信获取access_token接口简介 1、请求:该请求是GET方式请求,所以要携带的参数都是附加到url后面传递给微信服务器。请求的url格式如下: https:...
分类:
微信 时间:
2015-07-13 18:28:13
阅读次数:
249
Verbose Logging Will Disturb Your SleepJohannes BrodwallWHEN I ENCOUNTER A SYSTEM that has already been in development or pro- duction for a while, the first sign of real trouble is always a dirty log....
分类:
其他好文 时间:
2015-07-13 10:22:17
阅读次数:
115
trying to update eclipse but after downloading updatesi always get an error dialog saying:An error occurred while uninstallingsession context was:(pro...
分类:
系统相关 时间:
2015-07-12 14:16:34
阅读次数:
248
Kaggle Competition Past SolutionsWe learn more from code, and from great code. Not necessarily always the 1st ranking solution, because we also learn ...
分类:
其他好文 时间:
2015-07-11 21:19:21
阅读次数:
316
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times.You may assume that the array is non-empty and the majority element always...
分类:
其他好文 时间:
2015-07-09 19:48:42
阅读次数:
155
初探KVM-第一个虚拟机
一、准备环境
主板是否支持虚拟化技术:
egrep‘(vmx|svm)‘--color=always/proc/cpuinfo
检查kvm是否加载:
#lsmod|grepkvm
配置文件:
/etc/libvirt/libvirtd.conf
管理方式
1)
安装vnc用GUI工具(VirtualMachineManager)管理:
VirtualMachineManager..
分类:
其他好文 时间:
2015-07-09 14:51:04
阅读次数:
197
Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmallest to find the kth
smallest element in it.
Note:
You may assume k is always valid, 1 ≤ k ≤ BST's to...
分类:
其他好文 时间:
2015-07-09 14:40:05
阅读次数:
122
1.之前的interface 非常简单:
2.实际的interface 可以定义任务与函数,还可以always 和initial。
3.8bits 到10bits 在driver 中完成,将串行数据驱动到接口上:
4.在interface 做:
5.相应的,driver 中可以只驱动到interface 的并行接口上即可:
...
分类:
其他好文 时间:
2015-07-09 13:19:00
阅读次数:
162