摘要: Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any 阅读全文
posted @ 2015-02-08 15:55 Grandyang 阅读(25317) 评论(11) 推荐(3) 编辑
摘要: Canvas APIBasic LayoutsCamera ExampleVideo Widget ExampleImage Viewer ExamplePart 6 - Loading and SavingShow in Finder / Show in ExplorerItem Views Ex... 阅读全文
posted @ 2015-02-07 06:18 Grandyang 阅读(437) 评论(0) 推荐(0) 编辑
摘要: ActiveQt ExamplesUsing ActiveX from Qt applications.Animation Framework ExamplesDoing animations with Qt.Animated TilesApplication ChooserEasing Curve... 阅读全文
posted @ 2015-02-07 04:09 Grandyang 阅读(14871) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_a6fb6cc90101gynd.html 用了这么久的Qt,IDE一直都是VS与Creator并用(实际开发以VS为主),至于哪个更好这里不发表看法,各有所长,而且也因人而异,萝卜青菜,各有所爱。 Qt5发布很久之后,才把版本从之前的... 阅读全文
posted @ 2015-02-07 01:56 Grandyang 阅读(3181) 评论(0) 推荐(0) 编辑
摘要: GTK+2.0 中的容器控件与布局技巧GTK+图形化应用程序开发学习笔记(一)—概述 阅读全文
posted @ 2015-02-06 06:13 Grandyang 阅读(531) 评论(0) 推荐(0) 编辑
摘要: https://developer.gnome.org/gtkmm-tutorial/unstable/index.html.zh_CN1. 序言1.1. 本书 1.2. gtkmm 2. 安装2.1. 依赖关系 2.2. Unix 和 Linux 2.3. Microsoft Windows 3.... 阅读全文
posted @ 2015-02-06 06:02 Grandyang 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: CvMat:typedef struct CvMat{ int type; int step; /* for internal use only */ int* refcount; int hdr_refcount; union { uchar... 阅读全文
posted @ 2015-02-06 04:12 Grandyang 阅读(2361) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm should run in O(n) complexity. Examp 阅读全文
posted @ 2015-02-06 01:01 Grandyang 阅读(25105) 评论(13) 推荐(2) 编辑
摘要: 原文地址: http://blog.csdn.net/holybin/article/details/17711013在OpenCV中Mat、CvMat和IplImage类型都可以代表和显示图像。 IplImage由CvMat派生,而CvMat由CvArr派生即CvArr -> CvMat -> I... 阅读全文
posted @ 2015-02-05 00:44 Grandyang 阅读(3504) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 whic 阅读全文
posted @ 2015-02-05 00:14 Grandyang 阅读(9796) 评论(4) 推荐(0) 编辑
摘要: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning 阅读全文
posted @ 2015-02-04 05:04 Grandyang 阅读(17929) 评论(10) 推荐(1) 编辑
摘要: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. A palindro 阅读全文
posted @ 2015-02-03 14:54 Grandyang 阅读(22227) 评论(3) 推荐(1) 编辑
摘要: 多行注释:VS2010: /NotePad++: Ctrl QXcode: CMMND /回到光标所在之前位置VS2010: Ctrl +/-关闭当前页:VS2010: 鼠标中键NotePad: Ctrl W选中当前词:VS2010: ... 阅读全文
posted @ 2015-02-03 02:04 Grandyang 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: Given a reference of a node in a connected undirected graph, return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and 阅读全文
posted @ 2015-02-02 13:56 Grandyang 阅读(21488) 评论(15) 推荐(1) 编辑
摘要: 刷题必备书籍:Cracking the Coding Interview: 150 Programming Questions and Solutions简历:The Google Resume: How to Prepare for a Career and Land a Job at Apple... 阅读全文
posted @ 2015-02-02 09:59 Grandyang 阅读(1986) 评论(1) 推荐(0) 编辑
摘要: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost 阅读全文
posted @ 2015-02-02 09:19 Grandyang 阅读(20994) 评论(6) 推荐(2) 编辑
摘要: Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note: Your al 阅读全文
posted @ 2015-01-31 13:05 Grandyang 阅读(33565) 评论(6) 推荐(0) 编辑
摘要: Add in the system Path:C:\Program Files (x86)\Point Grey Research\FlyCapture2\binProject->Project Property->Configuration Properties->VC++Directories ... 阅读全文
posted @ 2015-01-31 00:28 Grandyang 阅读(1753) 评论(0) 推荐(0) 编辑
摘要: C/C++位操作运算符操作符功能用法~位求反~expr>右移expr1>> expr2&位与expr1 & expr2^位异或expr1^ expr2|位或expr1| expr2例子请参见http://www.cnblogs.com/thujason/archive/2010/07/08/1773... 阅读全文
posted @ 2015-01-30 12:15 Grandyang 阅读(425) 评论(0) 推荐(0) 编辑
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2015-01-30 05:34 Grandyang 阅读(24106) 评论(16) 推荐(4) 编辑
摘要: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequ 阅读全文
posted @ 2015-01-29 04:59 Grandyang 阅读(36140) 评论(12) 推荐(5) 编辑
摘要: Add in the system Path:C:\Program Files (x86)\OpenCV-2.1.0\build\bin\DebugProject->Project Property->Configuration Properties->VC++Directories ->Inclu... 阅读全文
posted @ 2015-01-29 01:20 Grandyang 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify the values in the list's nodes, only nodes its 阅读全文
posted @ 2015-01-28 07:16 Grandyang 阅读(15197) 评论(3) 推荐(1) 编辑
摘要: Open VS2010, create a new project, then open Property Manager, double-click Microsoft.Cpp.win32.user, open the Property Pages. Then go to VC++ Directo... 阅读全文
posted @ 2015-01-27 06:20 Grandyang 阅读(560) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, return [3,2,1]. Note: Recursive so 阅读全文
posted @ 2015-01-27 00:32 Grandyang 阅读(16180) 评论(6) 推荐(1) 编辑
摘要: Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially contains only the first elem 阅读全文
posted @ 2015-01-26 13:38 Grandyang 阅读(13572) 评论(8) 推荐(0) 编辑
摘要: Sort a linked list in O(n log n) time using constant space complexity. Example 1: Example 2: 常见排序方法有很多,插入排序,选择排序,堆排序,快速排序,冒泡排序,归并排序,桶排序等等。。它们的时间复杂度不尽相 阅读全文
posted @ 2015-01-26 11:53 Grandyang 阅读(27652) 评论(15) 推荐(2) 编辑
摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e 阅读全文
posted @ 2015-01-25 06:48 Grandyang 阅读(10345) 评论(3) 推荐(0) 编辑
摘要: Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 <version2 return -1;otherwise return 0. You may assume 阅读全文
posted @ 2015-01-23 14:22 Grandyang 阅读(10215) 评论(3) 推荐(1) 编辑
摘要: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,... 阅读全文
posted @ 2015-01-21 12:49 Grandyang 阅读(13328) 评论(3) 推荐(1) 编辑
摘要: GPU-Marching-CubesAn Implementation of the Marching Cubes[1] AlgorithmMarching Cubes MatlabThe Standford Volume Data ArchiveBrainWeb: Simulated Brain ... 阅读全文
posted @ 2015-01-21 06:55 Grandyang 阅读(1746) 评论(0) 推荐(0) 编辑
摘要: 排名美国大学学费学生人数1Harvard University哈佛大学$49,875(full-time)7002Stanford University斯坦福大学$47,343(full-time)4613Johns Hopkins University约翰霍普金斯大学$44,100(full-ti... 阅读全文
posted @ 2015-01-21 01:29 Grandyang 阅读(681) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 2 el 阅读全文
posted @ 2015-01-19 22:49 Grandyang 阅读(13826) 评论(12) 推荐(1) 编辑
摘要: Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume t 阅读全文
posted @ 2015-01-19 12:54 Grandyang 阅读(26447) 评论(19) 推荐(1) 编辑
摘要: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 阅读全文
posted @ 2015-01-19 09:40 Grandyang 阅读(19510) 评论(7) 推荐(0) 编辑
摘要: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next... 阅读全文
posted @ 2015-01-18 08:33 Grandyang 阅读(15804) 评论(4) 推荐(0) 编辑
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: Example 1: Example 2: Example 3: Credits:Spe 阅读全文
posted @ 2015-01-16 07:22 Grandyang 阅读(9742) 评论(4) 推荐(0) 编辑
摘要: Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A... 阅读全文
posted @ 2015-01-15 00:33 Grandyang 阅读(6194) 评论(3) 推荐(0) 编辑
摘要: Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Example 2: Note: The result may be very large, 阅读全文
posted @ 2015-01-14 22:37 Grandyang 阅读(14338) 评论(4) 推荐(0) 编辑
摘要: 3D RECONSTRUCTION WITH OPENCV AND POINT CLOUD LIBRARYhttp://stackoverflow.com/questions/19205557/opencv-stereo-matching-calibration 阅读全文
posted @ 2015-01-14 01:54 Grandyang 阅读(765) 评论(0) 推荐(0) 编辑
Fork me on GitHub