码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
Combinations leetcode java
题目:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], ...
分类:编程语言   时间:2014-07-30 09:58:03    阅读次数:218
windows下安装redis
1、redis简介 redis是一个key-value存储系统。和Memcached类似,它支持存 储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hashs(哈希类型)。这些数据类型都...
分类:Windows程序   时间:2014-07-29 22:12:32    阅读次数:623
pots(BFS)
D - Pots Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%lld & %llu Submit Status Description You are given two pots, having the volume of A and B liters respectively. ...
分类:其他好文   时间:2014-07-29 21:58:32    阅读次数:402
Linux 求文件交集 差集等
使用comm命令假设两个文件FILE1和FILE2用集合A和B表示,FILE1内容如下:abceda FILE2内容如下:cdac基本上有两个方法,一个是comm命令,一个是grep命令。分别介绍如下:comm命令, Compare sorted files FILE1 and FILE2 lin....
分类:系统相关   时间:2014-07-29 21:40:32    阅读次数:511
JQuery中操作css样式
//1、获取和设置样式$("#tow").attr("class")获取ID为tow的class属性$("#two").attr("class","divClass")设置Id为two的class属性。//2、追加样式$("#two").addClass("divClass2")为ID为two的对象...
分类:Web程序   时间:2014-07-29 20:45:02    阅读次数:272
Product UVA 10106
题目: Product The Problem The problem is to multiply two integers X, Y. (0250) The Input The input will consist of a set of pairs of lines. Each line in pair contains one mu...
分类:其他好文   时间:2014-07-29 18:03:42    阅读次数:283
leetcode__Convert Sorted List to Binary Search Tree
Convert Sorted List to Binary Search TreeTotal Accepted:12283Total Submissions:45910My SubmissionsGiven a singly linked list where elements are sorted...
分类:其他好文   时间:2014-07-29 17:29:32    阅读次数:216
#Leet Code# Convert Sorted Array to Binary Search Tree
描述:递归代码: 1 class Solution: 2 # @param num, a list of integers 3 # @return a tree node 4 def sortedArrayToBST(self, num): 5 if len(...
分类:其他好文   时间:2014-07-29 16:41:11    阅读次数:210
HDU4597:Play Game(记忆化)
Problem Description Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from...
分类:其他好文   时间:2014-07-29 15:03:28    阅读次数:248
基础篇——序列化和文件的输入输出
一、对象序列化(存储) FileOutputStream fileStream = new FileOuputStream("file.ser"); ObjectOutputStream os = new ObjectOutputStream(fileStream); os.writeObject(one); os.writeObject(two); os.close(); 当对象被序列...
分类:其他好文   时间:2014-07-29 14:47:18    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!