上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo... 阅读全文
posted @ 2015-10-20 12:39 茜茜的技术空间 阅读(145) 评论(0) 推荐(0)
摘要: Note:This is an extension ofHouse Robber.After robbing those houses on that street, the thief has found himself a new place for his thievery so that h... 阅读全文
posted @ 2015-10-20 12:06 茜茜的技术空间 阅读(190) 评论(0) 推荐(0)
摘要: There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certain ... 阅读全文
posted @ 2015-10-20 11:37 茜茜的技术空间 阅读(250) 评论(0) 推荐(0)
摘要: Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ... 阅读全文
posted @ 2015-10-17 07:09 茜茜的技术空间 阅读(157) 评论(0) 推荐(0)
摘要: Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen... 阅读全文
posted @ 2015-10-17 03:26 茜茜的技术空间 阅读(253) 评论(0) 推荐(0)
摘要: Given an array of integers that is alreadysorted in ascending order, find two numbers such that they add up to a specific target number.The function t... 阅读全文
posted @ 2015-10-17 02:52 茜茜的技术空间 阅读(357) 评论(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-10-17 02:16 茜茜的技术空间 阅读(270) 评论(0) 推荐(0)
摘要: You are playing the following Flip Game with your friend: Given a string that contains only these two characters:+and-, you and your friend take turns... 阅读全文
posted @ 2015-10-17 01:17 茜茜的技术空间 阅读(671) 评论(0) 推荐(0)
摘要: You are playing the following Flip Game with your friend: Given a string that contains only these two characters:+and-, you and your friend take turns... 阅读全文
posted @ 2015-10-17 00:59 茜茜的技术空间 阅读(269) 评论(0) 推荐(0)
摘要: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston... 阅读全文
posted @ 2015-10-17 00:42 茜茜的技术空间 阅读(183) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页