自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

李瑞远-时空数据

www.kangry.net/blog/

  • 博客(22)
  • 资源 (23)
  • 收藏
  • 关注

原创 [LeetCode] Maximal Rectangle

Maximal Rectangle Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.解题思路;题意表示找到右全1形成的最大的矩形块。解法1:用动态规划做,若d[i][j]表示以matrix[

2015-03-31 22:03:38 601

原创 [LeetCode] Valid Number

Valid NumberValidate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It is intended for the pro

2015-03-31 13:57:52 717

原创 js 正则表达式

验证js字符串str是否满足正则表达式:1/\{[^\}]*?\}/g.test(str);获得字符串str中的所有匹配:1var matched = str.match(/\{[^\}]*?\}/g);上述中返回的是一个数组对象,若未匹配

2015-03-31 10:17:07 563

原创 [LeetCode] Median of Two Sorted Arrays

Median of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).解题

2015-03-30 14:37:29 853

原创 [LeetCode] Spiral Matrix

Spiral MatrixGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ], [ 4, 5, 6 ],

2015-03-29 16:23:04 877

原创 [LeetCode]Compare Version Numbers

Compare Version NumbersCompare two version numbers version1 and version2.If version1 > version2 return 1, if version1 version2 return -1, otherwise return 0.You may assume that the version

2015-03-29 12:13:11 856

原创 [LeetCode]Find Minimum in Rotated Sorted Array

Find Minimum in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).Find the minimum element.

2015-03-29 11:14:57 678

原创 Restore IP Addresses

Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.255.11.135",

2015-03-28 21:49:34 638

原创 [LeetCode] Candy

Candy There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child must ha

2015-03-28 16:57:17 658

原创 [LeetCode] Decode Ways

Decode WaysA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message containing d

2015-03-28 14:24:31 895

原创 [LeetCode] Maximum Gap

Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 if the array contains les

2015-03-26 17:39:26 846

原创 [LeetCode] Divide Two Integers

Divide Two IntegersDivide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.解题思路:考虑到可能会溢出,因此可用long long类型强制转化int类型。另外,这种类型题目一

2015-03-26 14:20:09 801

原创 [LeetCode] Longest Common Prefix

Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings.解题思路:注意string类的append和push_back方法的使用。1. 先求两个字符串的前缀,在求此前缀与剩下的字符串的前缀。代码如下:class

2015-03-25 15:26:26 752

原创 [LeetCode] Sort Colors

Sort ColorsGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here

2015-03-25 14:21:01 693

原创 [LeetCode] Fraction to Recurring Decimal

Fraction to Recurring DecimalGiven two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating, enclos

2015-03-24 20:46:58 941

原创 [LeetCode OJ] Two Sum

Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to th

2015-03-24 15:58:15 763

转载 动态库,静态库,动态链接,静态链接

静态库和动态库目前以lib后缀的库有两种,一种为静态链接库(Static Link Library),另一种为动态连接库(Dynamic Link Library DLL)的导入库(Import Libary)。在静态库情况下,函数和数据被编译进一个二进制文件(通常扩展名为*.lib),编译器在处理程序代码时将从静态库中恢复这些函数和数据并把它们和应用程序中的其他模块组合在一起

2015-03-22 22:37:48 850

原创 二叉树的广义表形式

一棵二叉树的广义表形式为:A ( B ( C ) , D ( E ( F , G ) , H ( , I ) ) )其图形为:

2015-03-22 21:36:11 6950

转载 C/C++基本数据类型长度

熟知基本数据类型是我们正确表达实际问题中各种数据的前提,因此我分类总结了一下C/C++/Windows /C#基本数据类型,以便日后查阅。         ANSI C/C++基本数据类型:TypeSize数值范围无值型void0 byte无值域布尔型

2015-03-22 20:53:40 839

原创 好办法牢记前缀++(--)与后缀++(--)执行顺序

前缀++(--)和后缀++(--)引无数程序员竞折腰。虽然实际项目中由于程序员的自我修养,不会对++或--写出让人晦涩难懂的代码,但是在面试笔试的时候,一些“无聊的”企业总会拿这个来刁难我们。例如对于下面一个题目:int a = 4; //分别执行以下五种情况(1) a += a++; //a=?(2) a += ++a; //a=?(3) ++a += a; //a=?(4)

2015-03-16 12:43:44 2649

转载 JQuery判断数组中是否包含某个元素$.inArray("js", arr);

var arr = [ "xml", "html", "css", "js" ]; $.inArray("js", arr); //返回 3,如果不包含在数组中,则返回 -1;

2015-03-06 13:02:32 666

原创 C# 实现eval,支持任意个数、任意基本类型的参数

js中有一个方法eval,能够随时执行用户编写的代码。例如:js中的代码:eval("alert('hello world');"); 将会弹出一个写有hello world的提示框。但C#中却没有对应的方法。Google了一下,网站http://www.ckode.dk/programming/eval-in-c-yes-its-possible/基本实现了两个参数的e

2015-03-03 16:46:45 3777

ueditor for bos

百度富文本编辑器ueditor上传文件到对象存储BOS中,具体使用方法见http://blog.csdn.net/kangrydotnet/article/details/49331713

2015-10-22

jquery.gantt,js甘特图

JQuery.Gantt是一个开源的基于JQuery库的用于实现甘特图效果的可扩展功能的JS组件库。它既可以图形化行程安排,也可以展示数据分布。使用方法:http://blog.csdn.net/kangrydotnet/article/details/42265539

2014-12-30

Json格式浏览器

json格式规范的显示,呈树状显示出来,一目了然。

2014-10-22

PDF解密工具

PDF解密工具,让加密的PDF能够编写,打印。本人亲测,能够用。

2014-10-22

c#汉字转拼音dll

1、下载dll文件,加入项目引用 2、引入命名空间: using NPinyin; 3、方法: Pinyin.GetPinyin("中文"); 其他方法自己试试便知道哒 对应博文:http://www.kangry.net/blog/?type=article&article_id=57

2014-09-21

zend safeguard 加密php 破解版

下载后,其接下来的步骤如下: 1、安装ZendSafeGuard-Evaluation-3.6.0-Windows-i386.exe 2、将ZendOptimizer-3.3.3文件夹直接拷贝到php的ext 文件夹下面 3、修改php.ini 加上: [Zend] zend_extension_ts = "D:\softBox\AppServ\php5\ext\ZendOptimizer-3.3.3\ZendExtensionManager.dll" ;根据实际路径修改 zend_extension_manager.optimizer_ts="D:\softBox\ZendOptimizer-3.3.0\lib\Optimizer-3.3.0" ;根据实际路径修改 详细使用方法见博客:http://blog.csdn.net/kangrydotnet/article/details/21121877

2014-03-12

ueditor上传到bcs中

近期在做一个个人博客,用到了百度的富文本编辑器ueditor。博客是架在了bae中的。在测试的时候发现,上传的图片有时候不会或者是间接性地不会显现出来,特别诡异的是,我用ie内核的浏览器(比如360、ie、搜狗等)访问时与chrome和ff访问的结果不一样,即:有些图片在ie内核浏览器能够显示出来,在chrome或者ff中不能显示,反过来,有些图片能够在chrome或者ff中显示,但是在ie内核浏览器中不能显示。纠结于此,修改ueditor源代码,弄了一天,终于搞定了。本人拟详细记录如何实现通过ueditor上传文件到bcs中的步骤,所用到的ueditor是当前最新的版本:ueditor1_3_5,编程语言是php,搭建在百度开放云平台2.0中。

2014-01-05

mysql-connector for C/C++

截止资源上传时间最新的mysql connector,里面包含了c/c++ for linux 32bit or 64bit、c/c++ for windows 32bit的mysql connector

2013-10-24

coreseek4.1 支持多音字拼音索引第三版

Coreseek 是一款中文全文检索/搜索软件,以GPLv2许可协议开源发布,基于Sphinx研发并独立发布,专攻中文搜索和信息处理领域,适用于行业/垂直搜索、论坛/站内搜索、数据库搜索、文档/文献检索、信息检索、数据挖掘等应用场景。我们不仅可以免费下载使用,也可以对其提供的源代码进行修改,使其更符合我们的搜索要求。 本人在此基础上加上了拼音索引。具体使用方法见我的博客。http://blog.csdn.net/kangrydotnet/article/details/10829291。此为win64编译程序(3版)。

2013-09-19

coreseek4.1 支持多音字拼音索引 win64

Coreseek 是一款中文全文检索/搜索软件,以GPLv2许可协议开源发布,基于Sphinx研发并独立发布,专攻中文搜索和信息处理领域,适用于行业/垂直搜索、论坛/站内搜索、数据库搜索、文档/文献检索、信息检索、数据挖掘等应用场景。我们不仅可以免费下载使用,也可以对其提供的源代码进行修改,使其更符合我们的搜索要求。 本人在此基础上加上了拼音索引。具体使用方法见我的博客。http://blog.csdn.net/kangrydotnet/article/details/10829291。此为win64编译程序(2版,支持utf-8多音字,解决了一个内存泄露的bug)。win32(1版)下载地址:http://download.csdn.net/detail/wangshaner1/6192947

2013-09-03

coreseek4.1 支持拼音索引 win32

Coreseek 是一款中文全文检索/搜索软件,以GPLv2许可协议开源发布,基于Sphinx研发并独立发布,专攻中文搜索和信息处理领域,适用于行业/垂直搜索、论坛/站内搜索、数据库搜索、文档/文献检索、信息检索、数据挖掘等应用场景。我们不仅可以免费下载使用,也可以对其提供的源代码进行修改,使其更符合我们的搜索要求。 本人在此基础上加上了拼音索引。具体使用方法见我的博客。http://blog.csdn.net/kangrydotnet/article/details/10829291。此为win32编译程序。

2013-09-01

武汉大学计算机学院编译原理历年试卷

武汉大学 编译原理 计算机学院 试卷 武大

2012-01-04

武汉大学计算机学院历年考试试卷

武汉大学计算机学院历年考试试卷

2012-01-04

武汉大学计算机学院算法课件

这是武汉大学计算机学院算法课件。全英文的。请注意啊。上课老师也是用英文的ppt

2012-01-04

opengl 迷宫 交互

opengl 迷宫 交互

2011-12-27

opengl雪花koch

opengl雪花kochopengl雪花koch

2011-12-26

基于opengl mfc 的地球程序

基于opengl mfc 的地球程序基于opengl mfc 的地球程序

2011-12-26

[PHP.手册.官方中文版].php_manual_zh

刚刚下了一个别人的手册,发现自己被骗了,这个是我花了好久才找到的。里面的只是很全,还对各种函数分了类。相信你值得拥有。

2011-11-19

QQwry纯真数据库

可以根据IP查询到IP物理地址。其编码是gb2312,编写网站时如果出现乱码,可以先进行编码转换。

2011-08-27

java模拟腾讯qq,实现其基本功能-源码

这是一个模拟腾讯qq的java软件。大家可以参考一下。目前是1.0版,如果有什么问题请联系作者。

2011-06-12

java通信参考程序

这是一个java通信的实验程序。我们的java上机实验就要求我们做的。大家可以参考一下

2011-05-14

java通信程序参考

这是我们的一个作业。主要是通过socket来实现两个文件的通信。

2011-05-14

汇编语言编辑器 适于初学者

个人认为还不错,分享一下。一款功能使用的汇编编辑器

2011-04-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除