码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
package-info.java
问题:看开源项目发现这个package-info.java文件有些特殊,从名字上面也可以猜出这个类是与package有关的。具体是怎么回事呢?:就是记录包的信息To create a package comment file, you have a choice of two files to pl...
分类:编程语言   时间:2014-05-23 09:39:01    阅读次数:328
leetcode -day18 Balanced Binary Tree
1、 ?? Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subt...
分类:其他好文   时间:2014-05-23 08:19:19    阅读次数:282
1.把二元查找树转变成排序的双向链表
Binary search tree to sorted double linked list.
分类:其他好文   时间:2014-05-22 05:30:47    阅读次数:207
python学习_处理数据编程实例(一)
with语句,函数,列表推导,集合,排序,字符分割的应用,set(),sorted(),split()
分类:编程语言   时间:2014-05-22 05:15:55    阅读次数:264
Linus Torvalds 指针
《对话LinusTorvalds:大多黑客甚至连指针都未理解》http://www.csdn.net/article/2013-01-10/2813559-two-star-programming“不懂指针”的开发者代码示例: 1 typedef struct node 2 { 3 ...
分类:其他好文   时间:2014-05-22 04:40:17    阅读次数:245
10.排序数组中和为给定值的两个数字
Find 2 numbers with given sum in sorted array.
分类:其他好文   时间:2014-05-22 01:53:17    阅读次数:288
一段小程序理解getchar和putchar
#include "stdafx.h"#include using namespace std;int main(){ char c,d,e,f; printf("please input two characters:\n"); c=getchar(); putchar...
分类:其他好文   时间:2014-05-21 23:46:19    阅读次数:352
leetcode -day20 Add Two Numbers
1、 ?? 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 digit. Add the two num...
分类:其他好文   时间:2014-05-21 10:49:10    阅读次数:221
Lock-free vs. wait-free concurrency
There are two types of non-blocking thread synchronization algorithms - lock-free, and wait-free. Their meaning is often confused. In lock-free systems, while any particular computation may be block...
分类:其他好文   时间:2014-05-21 10:27:20    阅读次数:410
UVA 12123 - Magnetic Train Tracks(计数问题)
题目链接:12123 - Magnetic Train Tracks 题意:给定n个点,求有几个锐角三角形。 思路:和UVA 11529是同类的题,枚举一个做原点,然后剩下点根据这个原点进行极角排序,然后利用two pointer去遍历一遍,找出角度小于90度的锐角,然后扣掉这些得到钝角三角形的个数,然后在用总情况去扣掉钝角就是锐角或直角 代码: #include #include #...
分类:Web程序   时间:2014-05-20 14:10:56    阅读次数:412
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!