- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold add
2015-06-09 09:47:15
330
原创 Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum = 22, 5 / \
2015-06-09 09:39:27
314
原创 Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened tree should look like: 1
2015-06-09 09:29:30
330
原创 Excel Sheet Column Number
Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ...
2015-06-09 09:25:49
292
原创 Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.Assume that the tota
2015-06-09 09:20:17
351
原创 Count Complete Tree Nodes
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */clas
2015-06-09 09:18:59
476
转载 续期Replace Pioneer,不需要破解、购买注册码(KEY)
软件介绍(摘自百度百科) Replace Pioneer(中文名:替换先锋)是Mind Pioneer出品的一款共享软件。 Replace Pioneer是一款与众不同的专业文本批量替换和处理软件。 它的强大可以简单概括为:给定任何纯文本文件,二进制文件甚至网页地址,只要你能描述清楚转换规则,就能得到任何需要的结果文件。虽然Replace Pioneer主要是
2015-05-26 20:50:21
3024
原创 在windows下编译某linux源码
最近编译了一份linux下写的源码,源码中并无跨平台相关的代码,因此win下无法直接编译,而且源码较多,在linux下./configure 后make,make install很容易就编译并使用。但由于要求把该linux源码编译成win下的库在VS中调用,所以煞费工夫,总结一些东西,以免忘了。。。cygwin 或者 msys2、mingw 下./configuremake
2015-01-23 09:51:11
4699
原创 语料预处理
下面是我处理语料时遇到过的问题,记录下解决方法。1编码问题根据不同情况会遇到汉语语料的编码格式问题,主要是utf8与gbk直接的相互转换手动方法依赖于强大的UltraEdit软件,可打开GB级别的txt文档,然后另存为其他格式的编码2文件合并有时候下载的语料由于过大都是分别打包的,或者前后下了很多语料想一次使用,需要合并成一个txt文件Windows下的方法打开cm
2014-12-16 17:17:24
1906
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人