11 2015 档案

摘要:[转]2013年十大免费空间综合排行榜-稳定,可靠,速度快,可建站免费空间 阅读全文
posted @ 2015-11-30 14:24 Grandyang 阅读(545) 评论(0) 推荐(0) 编辑
摘要:Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloon 阅读全文
posted @ 2015-11-30 10:21 Grandyang 阅读(28954) 评论(23) 推荐(5) 编辑
摘要:这是一个用OpenCV2.4.10打开摄像头的一个例子,参见代码如下:#include #include #include using namespace cv;using namespace std;int main(int argc, char *argv[]){ CvCapture* c... 阅读全文
posted @ 2015-11-28 14:18 Grandyang 阅读(4549) 评论(0) 推荐(0) 编辑
摘要:For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible roote 阅读全文
posted @ 2015-11-27 12:25 Grandyang 阅读(26177) 评论(10) 推荐(0) 编辑
摘要:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-11-26 13:03 Grandyang 阅读(32251) 评论(5) 推荐(1) 编辑
摘要:[总结]FFMPEG视音频编解码零基础学习方法 阅读全文
posted @ 2015-11-25 02:58 Grandyang 阅读(477) 评论(0) 推荐(0) 编辑
摘要:14.6 Implement a CircularArray class that supports an array-like data structure which can be efficiently rotated.The class should use a generic type, ... 阅读全文
posted @ 2015-11-24 13:11 Grandyang 阅读(1782) 评论(0) 推荐(0) 编辑
摘要:Java反射——引言Java反射——Class对象Java反射——构造函数Java反射——字段Java反射——方法Java反射——Getter和SetterJava反射——私有字段和私有方法Java反射——注解Java反射——泛型Java反射——数组Java反射——动态代理Java反射——类的动态加... 阅读全文
posted @ 2015-11-23 04:26 Grandyang 阅读(739) 评论(0) 推荐(0) 编辑
摘要:Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies nums by upd 阅读全文
posted @ 2015-11-22 11:22 Grandyang 阅读(24523) 评论(12) 推荐(1) 编辑
摘要:Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f 阅读全文
posted @ 2015-11-18 12:18 Grandyang 阅读(12749) 评论(7) 推荐(0) 编辑
摘要:14.5 Explain what object reflection is in Java and why it is useful.Java中的对象反射机制可以获得Java类和对象的反射信息,并可采取如下操作:1. 在运行阶段获得类内部的方法和字段信息2. 新建类的实例3.通过获取字段引用来获得... 阅读全文
posted @ 2015-11-17 13:42 Grandyang 阅读(520) 评论(0) 推荐(0) 编辑
摘要:在C语言中,内存的主要分为下列几部分:1. Text/Code Segment 文本/代码区2. Initialized Data Segments 初始化的数据区3. Uninitialized Data Segments 未初始化的数据区4. Stack Segment 栈区5. Heap Se... 阅读全文
posted @ 2015-11-16 12:58 Grandyang 阅读(2162) 评论(1) 推荐(0) 编辑
摘要:strtol是一个C语言函数,作用就是将一个字符串转换为长整型long,其函数原型为:long int strtol (const char* str, char** endptr, int base);下面我们来看下每个参数的意义:str是要转换的字符enptr是指向第一个不可转换的字符位置的指针... 阅读全文
posted @ 2015-11-15 08:46 Grandyang 阅读(20795) 评论(0) 推荐(1) 编辑
摘要:14.4 Explain the difference between templates in C++ and generics in Java.在Java中,泛式编程Generic Programming的实现是通过一种就做类型擦除Type Erasure的机制来实现的。当源码转为Java虚拟机... 阅读全文
posted @ 2015-11-14 12:41 Grandyang 阅读(637) 评论(0) 推荐(0) 编辑
摘要:Change Qt::WFlags to Qt::WindowFlags 阅读全文
posted @ 2015-11-13 04:11 Grandyang 阅读(3199) 评论(0) 推荐(0) 编辑
摘要:Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2 阅读全文
posted @ 2015-11-12 13:59 Grandyang 阅读(13197) 评论(0) 推荐(1) 编辑
摘要:Overview Replacement of SetInput() with SetInputData() and SetInputConnection() Removal of GetProducerPort() from vtkDataObject Removal of GetPipelin... 阅读全文
posted @ 2015-11-12 04:29 Grandyang 阅读(795) 评论(0) 推荐(0) 编辑
摘要:Replacement of SetInput() with SetInputData() and SetInputConnection()someFilter->SetInput(someReader->GetOutput()); // Outdated// Replace to the foll... 阅读全文
posted @ 2015-11-11 06:56 Grandyang 阅读(1538) 评论(0) 推荐(0) 编辑
摘要:Given an integer array nums, find the sum of the elements between indices iand j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] sumRa 阅读全文
posted @ 2015-11-10 12:03 Grandyang 阅读(14776) 评论(5) 推荐(0) 编辑
摘要:从零开始学习VTK-东灵工作室-上从零开始学习VTK-东灵工作室-下 阅读全文
posted @ 2015-11-10 06:45 Grandyang 阅读(1185) 评论(0) 推荐(0) 编辑
摘要:Download ITK 4.8.1Download Qt 5.4 with MinGW 4.9.1Download CMake 3.2.0I assume you've already installed Qt 5.4 with MinGW 4.9.1 and CMake 3.2.0 correc... 阅读全文
posted @ 2015-11-10 05:41 Grandyang 阅读(950) 评论(0) 推荐(0) 编辑
摘要:首先要安装JDK,然后设置环境变量Path,添加C:\Program Files (x86)\Java\jdk1.8.0_66\bin然后建立一个名为j.java的文件,里面加入如下代码:public class j { public static void main(String[] arg... 阅读全文
posted @ 2015-11-09 05:23 Grandyang 阅读(422) 评论(0) 推荐(0) 编辑
摘要:罗其胜3d角色强化 CGwhat-Maya变形金刚擎天柱建模教程 Pixar in the box - khan academy Siggraph历届优秀动画 CG软件发展史:MAYA动画十年历程 maya 2014奥迪汽车模型制作教程 (yj6k) 海贼王路飞建模教程高清全集 阅读全文
posted @ 2015-11-08 14:41 Grandyang 阅读(458) 评论(0) 推荐(0) 编辑
摘要:14.3 What is the difference between final, finally, and finalize?这道题考察我们Java中的三个看起来很相似的关键字final,finally和finalize。别看它们三长的很像,但是完全不是一回事。final用在一个变量,方法或是类... 阅读全文
posted @ 2015-11-08 10:21 Grandyang 阅读(454) 评论(0) 推荐(0) 编辑
摘要:14.2 In Java, does the finally block get executed if we insert a return statement inside the try block of a try-catch-finally?这道题问我们Java中的finally块是否会被... 阅读全文
posted @ 2015-11-08 09:57 Grandyang 阅读(423) 评论(0) 推荐(0) 编辑
摘要:Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont 阅读全文
posted @ 2015-11-07 13:07 Grandyang 阅读(34411) 评论(24) 推荐(0) 编辑
摘要:14.1 In terms of inheritance, what is the effect of keeping a constructor private?这道题问我们用继承特性时,如果建立一个私有的构建函数会怎样。只有能访问该函数的私有变量或函数的东西才能访问私有构建函数,比如内部类就可以... 阅读全文
posted @ 2015-11-06 14:12 Grandyang 阅读(621) 评论(0) 推荐(0) 编辑
摘要:Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,101,18] Output: 4 Explanation: T 阅读全文
posted @ 2015-11-05 08:18 Grandyang 阅读(51292) 评论(19) 推荐(5) 编辑
摘要:一. 移动: h,j,k,l: 左,下,上,右。 w: 下一个词的词首。 e:下一个词的词尾。 b:上一个词的词首。 : v 模式选中后进行缩进。二. 跳转: %: 可以匹配{},"",(),[]之间跳转。 H、M、L:直接跳转到当前屏幕的顶部、中部、底部。 #H:跳转到当前屏的第#行。 #L:跳转... 阅读全文
posted @ 2015-11-05 07:13 Grandyang 阅读(531) 评论(0) 推荐(0) 编辑
摘要:VIM中文手册简明 Vim 练级攻略所需即所获:像 IDE 一样使用 vim 阅读全文
posted @ 2015-11-05 04:07 Grandyang 阅读(298) 评论(0) 推荐(0) 编辑
摘要:13.10 Write a function in C called my2DAlloc which allocates a two-dimensional array. Minimize the number of calls to malloc and make sure that the me... 阅读全文
posted @ 2015-11-04 04:41 Grandyang 阅读(1009) 评论(0) 推荐(0) 编辑
摘要:在和计算机内存打交道时,我们一定会碰到堆和栈,这两个东西很容易搞混,那么现在就来梳理一下二者的关系。栈是用来静态分配内存的而堆是动态分配内存的,它们都是存在于计算机内存之中。栈的分配是在程序编译的时候完成的,直接存储在内存中,接触内存很快。栈是后进先出的顺序,最后被申请的块最先被释放,这样就很容易跟... 阅读全文
posted @ 2015-11-03 13:51 Grandyang 阅读(6149) 评论(1) 推荐(0) 编辑
摘要:13.9 Write an aligned malloc and free function that supports allocating memory such that the memory address returned is divisible by a specific power ... 阅读全文
posted @ 2015-11-03 03:31 Grandyang 阅读(1368) 评论(0) 推荐(0) 编辑
摘要:13.8 Write a smart pointer class. A smart pointer is a data type, usually implemented with templates, that simulates a pointer while also providing au... 阅读全文
posted @ 2015-11-02 13:32 Grandyang 阅读(896) 评论(0) 推荐(0) 编辑
摘要:13.7 Write a method that takes a pointer to a Node structure as a parameter and returns a complete copy of the passed in data structure. The Node data... 阅读全文
posted @ 2015-11-02 11:55 Grandyang 阅读(894) 评论(0) 推荐(0) 编辑
摘要:You are playing the followingBulls and Cowsgame with your friend: You write a 4-digit secret number and ask your friend to guess it, each time your fr... 阅读全文
posted @ 2015-11-02 04:37 Grandyang 阅读(15633) 评论(4) 推荐(0) 编辑

Fork me on GitHub