码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
62. Divide Two Integers
思路: 类同 趣味算法之数学问题:题4. 两点需要注意: 1. 除数或被除数为最大负数时,转化为正数会溢出。2. divisor + divisor 可能会溢出。
分类:其他好文   时间:2014-09-09 10:37:28    阅读次数:205
Linux Mint theme customize
Linux mint cinnamon how to customize theme Linux mint have two style theme- system theme and user theme eg: system setting->themes like picture below: Void is user theme and the other is system the...
分类:系统相关   时间:2014-09-09 09:12:18    阅读次数:275
Leetcode: Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.难度70,与Convert Sorted Array to Binary Sear...
分类:其他好文   时间:2014-09-08 06:26:16    阅读次数:263
【leetcode】Remove Duplicates from Sorted List II-很精简
觉着自己写的比看到的答案精简,分享一下: class Solution { public: ListNode *deleteDuplicates(ListNode *head) { if(head == NULL) return NULL; ListNode res(-1); ListNode* pre = &res; pr...
分类:其他好文   时间:2014-09-08 01:03:16    阅读次数:267
Web Pages - Efficient Paging Without The WebGrid
Web Pages - Efficient Paging Without The WebGrid If you want to display your data over a number of pages using WebMatrix Beta1, you have two options. ...
分类:Web程序   时间:2014-09-07 23:44:45    阅读次数:397
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-09-07 23:40:25    阅读次数:202
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-09-07 22:19:15    阅读次数:280
NYIST 760 See LCS again
See LCS again时间限制:1000 ms | 内存限制:65535 KB难度:3描述There are A, B two sequences, the number of elements in the sequence is n、m;Each element in the seque.....
分类:其他好文   时间:2014-09-07 21:01:55    阅读次数:286
Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:其他好文   时间:2014-09-07 18:28:25    阅读次数:271
leetcode 之 Merge k Sorted Lists
Merge k Sorted Lists...
分类:其他好文   时间:2014-09-07 16:03:15    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!