码迷,mamicode.com
首页 >  
搜索关键字:intersection of two    ( 11974个结果
LeetCode: Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-06-28 14:31:12    阅读次数:201
HDU 4745 Two Rabbits(DP)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4745题意:n个数排成一个环。两个人AB初始时各自选定一个位置。每一轮A在顺时针方向选择一个位置,B在逆时针选择一个位置,且这两个人所选位置的数字相等,然后格子跳到新选的位置上。问最多进行多少轮?有一个限...
分类:其他好文   时间:2014-06-23 08:15:51    阅读次数:262
[Leetcode] Median of Two Sorted Arrays
Question:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity s...
分类:其他好文   时间:2014-06-21 08:34:52    阅读次数:172
[LeetCode] Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Def...
分类:其他好文   时间:2014-06-21 07:55:42    阅读次数:197
LeetCode:Divide Two Integers
题目链接 Divide two integers without using multiplication, division and mod operator. 最直观的方法是,用被除数逐个的减去除数,直到被除数小于0。这样做会超时。 本文地址 那么如果每次不仅仅减去1个除数,计算速度就会增加,但...
分类:其他好文   时间:2014-06-21 07:44:52    阅读次数:221
[leetcode] 4. Median of Sorted Arrays
// Question: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexi...
分类:其他好文   时间:2014-06-21 00:22:23    阅读次数:255
Clojure:将两个list合并成一个map
假设我们有两个list,分别是:(def a [“one” “two” “three”])(def b [1 2 3])我们要把它们合为一个键值对应的map,做法很简单:1. 先将a和b合为一个一一对应的list:(map vector a b) => (["one" 1] ["two" 2] ["...
分类:其他好文   时间:2014-06-20 23:32:09    阅读次数:237
Request.Form为什么不能获取html传递来的数据?
//只有form method="get"时才可用Request.QueryString["one"]方法//stringone=Request.QueryString["one"];//stringtwo=Request.QueryString["two"];//只有form method="po...
分类:Web程序   时间:2014-06-20 20:28:02    阅读次数:308
[LeetCode] Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note: You may assume that A has enough space (size that is greater or equa...
分类:其他好文   时间:2014-06-20 15:25:50    阅读次数:225
Careercup | Chapter 5
5.1 You are given two 32-bit numbers, N andM, and two bit positions, i and j. Write a method to insert M into Nsuch that M starts at bit j and ends at...
分类:其他好文   时间:2014-06-20 13:51:09    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!