In new mixed-voltage systems, it is often necessary to level-shift a control signal from a high level to a low level. An open-drain device, such as th...
分类:
其他好文 时间:
2014-11-28 14:16:23
阅读次数:
206
This Design Idea explores level-shifting an I2C bus from 5V/ground (positive domain) to ground/–5V (negative domain). In multisupply systems, you some...
分类:
其他好文 时间:
2014-11-28 14:15:37
阅读次数:
226
AC signals can emanate from many sources, and many of these sources are incompatible with the most popular interface voltages, such as TTL. A temptati...
分类:
其他好文 时间:
2014-11-28 14:13:40
阅读次数:
190
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
这个题目比较简单,借助容器queue即可完成二叉树的层序遍历。我的C++实现代码如下:
vector > levelOrder(TreeNode *...
分类:
其他好文 时间:
2014-11-28 10:22:22
阅读次数:
206
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
这个简单的问题可以这样解决:利用LeetCode[Tree]: Binary Tree Level...
分类:
其他好文 时间:
2014-11-28 10:15:15
阅读次数:
227
线上部分实时job是用storm开发的,为了监控数据的延迟,在storm处理日志的时候会把日志的时间插入到redis中,然后通过zabbix做延迟的监控。由于经常有新的job上线,手动配置监控项就变得比较麻烦,为了解放生产力,还是需要搞成自动化。之前添加网卡和分区监控的时候用了LLD的..
分类:
其他好文 时间:
2014-11-28 06:26:22
阅读次数:
298
给定一个数,广度优先输出记录。例如:Given binary tree{3,9,20,#,#,15,7}, 3 / \ 9 20 / \ 15 7return its level order traversal as:[ [3], [9,20], [15,7]]思...
分类:
其他好文 时间:
2014-11-28 01:04:56
阅读次数:
250
Must tri-state outputs and use an external resistor to pull up to 5VTo drive 5V CMOS-level inputs, a pull-up resistor must be applied to the 5V Virtex...
分类:
其他好文 时间:
2014-11-27 23:24:05
阅读次数:
243
第一步:首先建立一个WEB工程,去log4j官网下log4j的JAR包导入到工程的lib目录下第二步:在src目录下建一个log4j.properties 文件,文件命名可以由自己,只是记加载时候和这里名字一致就行;log4j.properties 里边的内容如下:### set log level...
分类:
编程语言 时间:
2014-11-27 23:23:58
阅读次数:
381
switch语句的判断条件可以接受int,byte,char,short,不能接受其他类型只有JDK版本1.7以上才可以支持String设置如下可解决问题:(若没有JDK1.7版,可下载一下安装)菜单选项--》project->properties->java compiler->compiler ...
分类:
移动开发 时间:
2014-11-27 20:25:37
阅读次数:
350