摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. 阅读全文
posted @ 2015-06-10 22:27 linqiaozhou 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2-> 阅读全文
posted @ 2015-06-10 21:24 linqiaozhou 阅读(371) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2015-06-09 17:25 linqiaozhou 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 编写的多线程程序,是根据孙鑫的视频讲解写的,这个代码重点在于线程同步,需要注意的是线程的时间片的划分,如果主线程的时间片一直在运行的话,程序是不会进入子线程的。// MultiThread.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#inclu... 阅读全文
posted @ 2015-06-08 23:14 linqiaozhou 阅读(247) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ruifangcui7758/archive/2010/10/18/5948611.aspx引言 如果在您的开发过程中遇到了常见的错误,或许您的Release版本不能正常运行而Debug版本运行无误,那么我推荐您阅读本文:因为并非如您想象的那样,R... 阅读全文
posted @ 2015-06-08 19:48 linqiaozhou 阅读(1899) 评论(0) 推荐(0) 编辑
摘要: error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. Se 阅读全文
posted @ 2015-06-08 19:45 linqiaozhou 阅读(2966) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/lqhbupt/article/details/78288271、HDR简介HDR的全称是High-DynamicRange(高动态范围)。在此,我们先解释一下什么是DynamicRange(动态范围),动态范围是指图像中所包含的从“最亮”至“最暗”的... 阅读全文
posted @ 2015-06-06 10:38 linqiaozhou 阅读(4437) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.sina.com.cn/s/blog_7908e1290101i97z.html综述:OpenCV有针对矩阵操作的C语言函数. 许多其他方法提供了更加方便的C++接口,其效率与OpenCV一样.OpenCV将向量作为1维矩阵处理.矩阵按行存储,每行有4字节的校整.//由... 阅读全文
posted @ 2015-06-06 10:36 linqiaozhou 阅读(40965) 评论(0) 推荐(2) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo 阅读全文
posted @ 2015-06-04 18:55 linqiaozhou 阅读(215) 评论(0) 推荐(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-06-04 15:16 linqiaozhou 阅读(535) 评论(0) 推荐(0) 编辑