题目:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.AnalysisThis problem can be solved by using B...
分类:
其他 时间:
2015-08-30 12:36:19
收藏:
0 评论:
0 赞:
0 阅读:
204
Q:为什么要实现这个目的??A:因为有些程序 需要使用电脑上面的硬件,比如串口 采集卡之类的。这样情况下,程序在内存里面就只能有一份,不然会抢夺硬件资源,造成各种问题。××××××××××××××××××××××实现这个目的可能有很多种方式。不过此处我要使用的是CreateMutex()这个函数。这...
分类:
其他 时间:
2015-08-30 12:35:59
收藏:
0 评论:
0 赞:
0 阅读:
110
1044. Shopping in Mars (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShopping in Mars is quite a different experience. The Mars people...
分类:
其他 时间:
2015-08-30 12:35:49
收藏:
0 评论:
0 赞:
0 阅读:
141
最近写css遇到一些问题,所以准备写下来捋一下思路。1.position=satic下看margin的使用。(top-right-bottom-left在这种case下无效)1-1)margina,margin值为具体的px 结果如图,b,margin值为百分比...
分类:
其他 时间:
2015-08-30 12:35:39
收藏:
0 评论:
0 赞:
0 阅读:
158
package com.leegh.parameterizationimport scala.reflect.ClassTag/** * @author Guohui Li */class A[T]object Manifest_ClassTag { def main(args: Array[St....
分类:
其他 时间:
2015-08-30 12:35:19
收藏:
0 评论:
0 赞:
0 阅读:
1278
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 1 class Solution { 2 publ...
分类:
其他 时间:
2015-08-30 12:34:49
收藏:
0 评论:
0 赞:
0 阅读:
175
DT大数据梦工厂scala的所有视频、PPT和代码在百度云盘的链接:http://pan.baidu.com/share/home?uk=4013289088#category/type=0&qq-pf-to=pcqq.group《Scala深入浅出实战初级入门经典视频课程》http://edu.5...
分类:
其他 时间:
2015-08-30 12:34:09
收藏:
0 评论:
0 赞:
0 阅读:
185
DT大数据梦工厂scala的所有视频、PPT和代码在百度云盘的链接:http://pan.baidu.com/share/home?uk=4013289088#category/type=0&qq-pf-to=pcqq.group《Scala深入浅出实战初级入门经典视频课程》http://edu.5...
分类:
其他 时间:
2015-08-30 12:33:39
收藏:
0 评论:
0 赞:
0 阅读:
119
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他 时间:
2015-08-30 12:33:29
收藏:
0 评论:
0 赞:
0 阅读:
157
Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3 --...
分类:
其他 时间:
2015-08-30 12:33:09
收藏:
0 评论:
0 赞:
0 阅读:
137
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Note:Do not modify the linked list.Follow up:Can you sol...
分类:
其他 时间:
2015-08-30 12:32:59
收藏:
0 评论:
0 赞:
0 阅读:
217
Ps视觉交互总结图像编辑快捷键:新建 ctrl+N 或 菜单栏文件中新建(像素.RGB)缩放功能 Z 放大 ctrl++ 缩小 ctrl+- 屏幕像素 ctrl+0 实际像素 ctrl+1 查看所有快捷键 ctrl+Alt+Shift+k选框工具 M(手动) 矩形工具 U(自动)【切换其它工具 .....
分类:
其他 时间:
2015-08-30 12:32:19
收藏:
0 评论:
0 赞:
0 阅读:
197
Given a linked list, determine if it has a cycle in it. 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ...
分类:
其他 时间:
2015-08-30 12:32:09
收藏:
0 评论:
0 赞:
0 阅读:
98
LeetCode WordBreak原题Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more di...
分类:
其他 时间:
2015-08-30 12:31:29
收藏:
0 评论:
0 赞:
0 阅读:
337
关于nextLine()和next()的使用关键在于:next() 方法遇见第一个有效字符(非空格,换行符)时,开始扫描,当遇见第一个分隔符或结束符(空格或换行符)时,结束扫描。、这时使用nextLine(),继续读,有可能读入第一个字符是空格或换行符。 在实现字符窗口的输入时,我个人更喜欢选择使....
分类:
其他 时间:
2015-08-30 12:31:19
收藏:
0 评论:
0 赞:
0 阅读:
178
引言 ? ? 在Concurrent包中,BlockingQueue很好的解决了在多线程中,如何高效安全“传输”数据的问题。通过这些高效并且线程安全的队列类,为我们快速搭建高质量的多线程程序带来极大的便利。同时,BlockingQue...
分类:
其他 时间:
2015-08-30 11:29:17
收藏:
0 评论:
0 赞:
0 阅读:
246
一.isa指针
要认识什么是isa指针,我们得先明确一点:
在Objective-C中,任何类的定义都是对象。类和类的实例(对象)没有任何本质上的区别。任何对象都有isa指针。
那么什么是类呢?在xcode中用快捷键Shift+Cmd+O 打开文件objc.h 能看到类的定义:
可以看出:
Class 是一个 objc_class 结构类型的指针, id是...
分类:
其他 时间:
2015-08-30 11:27:49
收藏:
0 评论:
0 赞:
0 阅读:
203
———————————————————————————————————————————
多个对象内存管理(野指针&内存泄漏)
(注:这一部分知识请结合“单个对象内存管理”去理解)
这一部分的知识比较简单,就牵扯到一个会产生野指针的情形和如何避免内存泄漏问题。
代码:
#import
@interface Car : NSObject
-(void)run...
分类:
其他 时间:
2015-08-30 11:27:09
收藏:
0 评论:
0 赞:
0 阅读:
148
《嵌入式工程师必知必会》,Lewin A.R.W.Edwards 著;张乐锋等译。
很多人推荐这本书,最近也一直在看,把觉得有用的东西记录下,以后自己可以看看,也希望能给想学习嵌入式的朋友带来一点帮助。
一、嵌入式工程师应该掌握的知识
这里给出了一些理论知识与实践技能,我个人认为这些理论知识与实践技能是嵌入式工程师必须掌握的。
1、至少要对印制电路板中电...
分类:
其他 时间:
2015-08-30 11:26:59
收藏:
0 评论:
0 赞:
0 阅读:
183
【翻译自mos文章】为DataGuard的 Redo Transport 启用加密...
分类:
其他 时间:
2015-08-30 11:26:49
收藏:
0 评论:
0 赞:
0 阅读:
213