摘要:
Given an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the d... 阅读全文
posted @ 2015-07-29 16:13
鸭子船长
阅读(154)
评论(0)
推荐(0)
摘要:
There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should... 阅读全文
posted @ 2015-07-29 15:40
鸭子船长
阅读(114)
评论(0)
推荐(0)
摘要:
转自http://blog.sina.com.cn/s/blog_9f1c0931010180cy.html Vectors vector是C++标准模板库中的部分内容,它是一个多功能的,能够操作多种数据结构和算法的模板类和函数库。vector之所以被认为是一个容器,是因为它能够像容器一样存放各种类 阅读全文
posted @ 2015-07-29 14:56
鸭子船长
阅读(463)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2015-07-29 10:39
鸭子船长
阅读(175)
评论(0)
推荐(0)
摘要:
A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you aregiven... 阅读全文
posted @ 2015-07-29 00:42
鸭子船长
阅读(188)
评论(0)
推荐(0)