题目链接Kundu is true tree lover. Tree is a connected graph havingNvertices andN-1edges. Today when he got a tree, he colored each edge with one of either...
分类:
其他好文 时间:
2014-08-23 22:55:51
阅读次数:
309
LeetCode: Clone GraphClone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serializatio...
分类:
其他好文 时间:
2014-08-23 20:21:31
阅读次数:
224
mydd = $('.plist');mydd.each(function(i){ $(this).click(function(){ mydl.eq(i).hide("slow"); })});注意:此处 this 指代的是 DOM 对象而非 jQuery 对象。如果...
分类:
Web程序 时间:
2014-08-23 17:39:11
阅读次数:
238
Triangle
Total Accepted: 16109 Total
Submissions: 60327My Submissions
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row...
分类:
其他好文 时间:
2014-08-23 16:54:11
阅读次数:
253
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have
exact...
分类:
其他好文 时间:
2014-08-23 16:51:01
阅读次数:
184
Problem Description
N(3
Each player has a unique skill rank. To improve their skill rank, they often compete with each other. If two players want to compete, they must choose a referee among oth...
分类:
其他好文 时间:
2014-08-23 15:27:21
阅读次数:
253
A bishop is a piece used in thegame of chess which is played on a board of square grids. A bishop can only movediagonally from its current position and two bishops attack each other if oneis on the pa...
分类:
其他好文 时间:
2014-08-23 15:26:31
阅读次数:
286
Remove Duplicates from Sorted Array
Total Accepted: 22879 Total
Submissions: 70824My Submissions
Given a sorted array, remove the duplicates in place such that each element appear only on...
分类:
其他好文 时间:
2014-08-23 15:25:01
阅读次数:
196
LeetCode: CandyThere are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to th...
分类:
其他好文 时间:
2014-08-23 15:09:00
阅读次数:
157
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2014-08-23 12:44:30
阅读次数:
211