码迷,mamicode.com
首页 >  
搜索关键字:redis list    ( 76141个结果
C#_dropdownlist_2
stringdeptId=Request.Form["depts"].Trim();Html.DropDownList()赋默认值:页面代码如下: list = new List { new SelectListItem { Text = "启用", Value = "0",Selected = ....
分类:其他好文   时间:2014-05-19 18:59:16    阅读次数:269
LeetCode: Remove Nth Node From End of List [019]
【题目】 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will ...
分类:其他好文   时间:2014-05-18 18:48:03    阅读次数:269
Redis c/c++, java 客户端连接
Redis 介绍 redis 这个想必大家都了解,关于redis的安装参考这里,redis使用文档参见这里。 Redis C客户端的使用方法  Redis的c客户端 Hiredis使用比较广泛,下面主要介绍下它。 1,Hiredis的安装,配置 Hiredis客户端 在redis解压后的deps/hiredis下有相应的文件。如果你的安装包没有相应的文件可以到这里下载。 cd...
分类:编程语言   时间:2014-05-18 18:38:34    阅读次数:418
利用+=n连续保存或者输出n个数
for (int k = 0; k if (((k + 1) % 2) != 0) { m1 = (MealEntity) list.get(k); %> "> src="mealImg/.jpg" width="148" height="126" border="0" /> : 原价:人民币元 现价:人民币 元 "> ...
分类:其他好文   时间:2014-05-18 14:07:40    阅读次数:234
LeetCode: Reverse Nodes in k-Group [024]
【题目】 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is. You may not alter the values in the nodes, only n...
分类:其他好文   时间:2014-05-18 10:22:34    阅读次数:367
LeetCode: Merge k Sorted Lists [022]
【题目】 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 【题意】 合并K个有序链表 【思路】 归并 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For ...
分类:其他好文   时间:2014-05-18 09:05:40    阅读次数:255
LeetCode: Swap Nodes in Pairs [023]
【题目】 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. You may not modify the values in the list, only nodes it...
分类:其他好文   时间:2014-05-18 08:37:57    阅读次数:370
ledisdb:支持类redis接口的嵌入式nosql
ledisdb现在可以支持嵌入式使用。你可以将其作为一个独立的lib(类似leveldb)直接嵌入到你自己的应用中去,而无需在启动单独的服务。ledisdb提供的API仍然类似redis接口。首先,你需要创建db对象:import "github.com/siddontang/ledisdb/ledis" configJson = []byte('{ "data_db" : {...
分类:数据库   时间:2014-05-18 05:02:25    阅读次数:412
基于redis 内存数据库简单使用
在ecplise中使用内存数据的客端户,前提要准备要下载两个jar包   commons-pool2-2.0.jar http://download.csdn.net/detail/f765961322/7357673; jedis-2.4.2.jar                http://download.csdn.net/detail/f765961322/7357681; 前提...
分类:数据库   时间:2014-05-18 04:31:42    阅读次数:320
leetcode -day17 Path Sum I II & Flatten Binary Tree to Linked List & Minimum Depth of Binary Tree
1、 ?? Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below...
分类:其他好文   时间:2014-05-18 03:25:06    阅读次数:301
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!