04 2017 档案

摘要:Find K-th largest element in an array. and N is much larger than k. Notice You can swap elements in the array Find K-th largest element in an array. a 阅读全文
posted @ 2017-04-13 08:01 璨璨要好好学习 阅读(323) 评论(0) 推荐(0)
摘要:Given some points and a point origin in two dimensional space, find k points out of the some points which are nearest to origin.Return these points so 阅读全文
posted @ 2017-04-13 04:21 璨璨要好好学习 阅读(1648) 评论(0) 推荐(0)
摘要:There are two properties in the node student id and scores, to ensure that each student will have at least 5 points, find the average of 5 highest sco 阅读全文
posted @ 2017-04-13 01:59 璨璨要好好学习 阅读(1239) 评论(0) 推荐(0)
摘要:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of 阅读全文
posted @ 2017-04-12 23:11 璨璨要好好学习 阅读(132) 评论(0) 推荐(0)
摘要:Given an array of integers, find how many unique pairs in the array such that their sum is equal to a specific target number. Please return the number 阅读全文
posted @ 2017-04-12 21:55 璨璨要好好学习 阅读(732) 评论(0) 推荐(0)
摘要:Given an array of integers, find how many pairs in the array such that their sum is less than or equal to a specific target number. Please return the 阅读全文
posted @ 2017-04-12 05:11 璨璨要好好学习 阅读(614) 评论(0) 推荐(0)
摘要:Given an array of n objects with k different colors (numbered from 1 to k), sort them so that objects of the same color are adjacent, with the colors 阅读全文
posted @ 2017-04-06 05:15 璨璨要好好学习 阅读(132) 评论(0) 推荐(0)
摘要:Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to 阅读全文
posted @ 2017-04-06 02:22 璨璨要好好学习 阅读(112) 评论(0) 推荐(0)