码迷,mamicode.com
首页 >  
搜索关键字:you have two operati    ( 41000个结果
Remove Duplicates from Sorted List II [详细分析]
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1-...
分类:其他好文   时间:2014-06-22 22:57:49    阅读次数:347
NYOJ353 3D dungeon 【BFS】
3D dungeon 时间限制:1000 ms  |  内存限制:65535 KB 难度:2 描述You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fil...
分类:其他好文   时间:2014-06-22 22:13:18    阅读次数:223
LeetCode:Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? ...
分类:其他好文   时间:2014-06-22 21:31:26    阅读次数:214
删除Map中Value重复的记录,并且只保留Key最小的那条记录
介绍 晚上无聊的时候,我做了一个测试题,测试题的大体意思是:删除Map中Value重复的记录,并且只保留Key最小的那条记录。 例如: I have a map with duplicate values: ("A", "1"); ("B", "2"); ("C", "2"); ("D", "3"); ("E", "3"); I would like to the map to have: ("A", "1"); ("B", "2"); ...
分类:其他好文   时间:2014-06-22 20:30:10    阅读次数:175
LeetCode:Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2],...
分类:其他好文   时间:2014-06-22 17:07:52    阅读次数:166
POJ训练计划2299_Ultra-QuickSort(归并排序求逆序数)
Ultra-QuickSort Time Limit: 7000MS   Memory Limit: 65536K Total Submissions: 39279   Accepted: 14163 Description In this problem, you have to analyze a particular sorting...
分类:其他好文   时间:2014-06-22 15:38:06    阅读次数:168
POJ-1068 Parencodings
Description Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways:  q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses...
分类:其他好文   时间:2014-06-22 14:06:49    阅读次数:249
LeetCode——Add Binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 求数字字符串的二进制和。同之前的数组代表数字,两个数组相加一样,只不过进位变成了2.可能两个串的长度不一样,故逆转,从左到右加下去,最后再逆转。 publi...
分类:其他好文   时间:2014-06-21 20:11:21    阅读次数:344
Access text files using SQL statements by DB Query Analyzer
Is it a dream that you can access text files using SQL statements? But now, it is true that DB Query Analyzer provides you a power tool which can help you realize the dream above. I’ll give you a sample to show its powerful function. What’s more, the p...
分类:数据库   时间:2014-06-21 18:41:54    阅读次数:510
[转] An Introduction to Mutual SSL Authentication
1. Introduction Mutual SSL authentication or certificate based mutual authentication refers to two parties authenticating each other through verifying...
分类:其他好文   时间:2014-06-21 14:38:35    阅读次数:436
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!