Two Sum Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indic...
分类:
其他好文 时间:
2014-10-09 23:05:37
阅读次数:
273
title
描述
Follow up for ”Remove Duplicates”: What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is no...
分类:
其他好文 时间:
2014-10-09 03:14:48
阅读次数:
163
题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your al...
分类:
其他好文 时间:
2014-10-09 00:31:07
阅读次数:
234
[leetcode]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 should be O(log (m+n))....
分类:
其他好文 时间:
2014-10-08 14:00:15
阅读次数:
147
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
1 3 ...
分类:
其他好文 时间:
2014-10-08 11:52:35
阅读次数:
202
python解析xml文件操作实例,操作XML文件的常见技巧。xml文件内容: sample xml thing ma xiaoju Springs Widgets, Inc. First I think widgets are greate.You should ...
分类:
编程语言 时间:
2014-10-08 08:09:14
阅读次数:
252
问题: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime co...
分类:
其他好文 时间:
2014-10-07 18:14:13
阅读次数:
189
题目:Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the ...
分类:
其他好文 时间:
2014-10-06 18:31:30
阅读次数:
145
仅仅是配置文件,粘贴如下,不做解释!去掉了很多功能!仅保留sip电话!
[general]
; General settings for the operation of Yate
; modload: boolean: Should a module be loaded by default if there is no
; reference to it in the [modules]...
分类:
其他好文 时间:
2014-10-06 16:09:00
阅读次数:
167
First of all, you should install a clean Ubuntu Server (Amd-64) on your server. (Version 14.04 is strongly recommended for the best compatibility)Get ...
分类:
其他好文 时间:
2014-10-06 13:56:40
阅读次数:
187