题目
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching sh...
分类:
其他好文 时间:
2014-06-25 19:56:35
阅读次数:
275
ndk中包含了stl对应的库,在$(NKD_HOME)/sources/cxx-stl/stlport/stlport有关Android NDK的C++ STL开发相关总结如下:从Android NDK r5开始支持了STL Port,在这个版本开始就可以使用部分STL库的功能了,比如说vector...
分类:
移动开发 时间:
2014-06-25 15:25:39
阅读次数:
183
// STL.cpp : 定义控制台应用程序的入口点。////vector是一个连续的向量,相当于数组。vector不建议除了尾部之外的数据添加删除操作。//vector::iterator 迭代器#include "stdafx.h"#include#includeusing namespace ...
分类:
其他好文 时间:
2014-06-25 14:19:23
阅读次数:
177
C++中数组很坑,有没有类似Python中list的数据类型呢?类似的就是vector!vector 是同一种类型的对象的集合,每个对象都有一个对应的整数索引值。和 string 对象一样,标准库将负责管理与存储元素相关的内存。我们把 vector 称为容器,是因为它可以包含其他对象。一个容器中的所有对象都必须是同一种类型的。...
分类:
编程语言 时间:
2014-06-24 23:07:59
阅读次数:
310
题目
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key...
分类:
其他好文 时间:
2014-06-24 22:45:43
阅读次数:
202
class Solution {public: int threeSumClosest(vector &num, int target) { int len = num.size(); if (len target) { q-...
分类:
其他好文 时间:
2014-06-24 21:22:03
阅读次数:
138
/*
混合C++、JS、python、Lisp、汇编
1种语言,5种语法
*/
main
{
//C++
vector v;
v.push(2);
putsl(v.size());
if(v.count()==1)
{
putsl("abc");
}
//JS
var a=function(x){
return x*2;
}
putsl(a(3));
a={90...
分类:
编程语言 时间:
2014-06-24 20:39:10
阅读次数:
307
很久前给Support发Email问能不能在设计期给AdvStringGrid标题加个数字标识,每次我都是自己改代码加上去。这次升级到新版本,没想到加入了这个功能:
功能虽小但是非常实用,很多的事件和函数接口都是用Index的,有了这个就不用费力去对比了。
真心赞一个!...
分类:
其他好文 时间:
2014-06-24 20:05:12
阅读次数:
170
题目
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the ent...
分类:
其他好文 时间:
2014-06-24 18:43:56
阅读次数:
224
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if ...
分类:
其他好文 时间:
2014-06-24 17:25:41
阅读次数:
197