码迷,mamicode.com
首页 >  
搜索关键字:map    ( 26547个结果
Redis使用总结之与Memcached异同
Redis是什么?两句话可以做下概括: 1. 是一个完全开源免费的key-value内存数据库 ? ? 2. 通常被认为是一个数据结构服务器,主要是因为其有着丰富的数据结构 strings、map、 list、sets、 sorted sets ? Redi...
分类:系统相关   时间:2015-06-25 12:36:00    阅读次数:216
Number of Islands
Description:Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecti...
分类:其他好文   时间:2015-06-25 12:03:53    阅读次数:104
Edit 方法
AX 的edit 方法可以很方便地给用户提供记录选择功能,而不用在TABLE上添加新字段。通常结合map使用,一般edit 方法格式:edit NoYes include(boolean _set, TableName _table, NoYes _value)egmap mapSelected.....
分类:其他好文   时间:2015-06-25 10:22:44    阅读次数:179
Leetcode 219 Contains Duplicate II
1. 问题描述  给定一个整数数组nums[],查找是否存在两个下标i和j,满足numsi=numsjnums_i = nums_j 且|i?j|≤k|i-j| \le k。2. 思路与方法  这个问题比Contains Duplicate III要简单一些,思路方面可以参考上一篇文章Contains Duplicate III。采用“滑动窗口”+哈希的方法。不同的是,在窗口范围内只要找到满足has...
分类:其他好文   时间:2015-06-25 09:04:22    阅读次数:198
2005年华中科技大学计算机保研机试真题 找位置
题目1199: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 struct node{ 7 vector v; 8 }; 9 node map['z'+1];10 int main(){11 ...
分类:其他好文   时间:2015-06-25 08:50:30    阅读次数:141
[Javascript + rxjs] Using the map method with Observable
Like an array, Observable has a map method that allows us to transform a sequence into a new Observable.var Observable = Rx.Observable;//Create click ...
分类:编程语言   时间:2015-06-25 06:44:40    阅读次数:190
2000年华中科技大学计算机研究生机试真题 对称矩阵
题目1180:对称矩阵时间限制:1 秒内存限制:32 兆特殊判题:否提交:2518解决:1295题目描述:输入一个N维矩阵,判断是否对称。输入:输入第一行包括一个数:N(1 2 #include 3 #include 4 using namespace std; 5 int map[105][1.....
分类:其他好文   时间:2015-06-25 01:20:42    阅读次数:139
There's Treasure Everywhere! poj1473题目解析
题目:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@总时间限制:1000ms内存限制:65536kB描述Finding buried treasures is simple: all you need is a map! The pirate...
分类:其他好文   时间:2015-06-24 23:53:53    阅读次数:138
Leetcode 220 Contains Duplicate III
1. 问题描述  给定一个整数数组nums[],查找是否存在两个下标i和j,满足|numsi?numsj|≤t|nums_i-nums_j| \le t 且 |i?j|≤k|i-j| \le k。2. 方法与思路  总得思路就是:“滑动窗口”+unordered_map。   推理过程如下:   |numsi?numsj|≤t?|numsi/t?numsj/t|≤1|nums_i-nums_j|...
分类:其他好文   时间:2015-06-24 22:41:57    阅读次数:328
python学习随笔
1 高阶函数的使用:import mathdef add(x, y, f): return f(x) + f(y)sq = math.sqrtprint add(25, 9,sq)2. map函数:map()函数map()是 Python 内置的高阶函数,它接收一个函数 f 和一个 list,...
分类:编程语言   时间:2015-06-24 20:42:58    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!