上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 题目描述:(链接)There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the follow... 阅读全文
posted @ 2015-10-17 23:51 skycore 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it c... 阅读全文
posted @ 2015-10-17 22:50 skycore 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra ... 阅读全文
posted @ 2015-10-15 23:41 skycore 阅读(140) 评论(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 ... 阅读全文
posted @ 2015-10-15 11:23 skycore 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the tot... 阅读全文
posted @ 2015-10-14 23:10 skycore 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目链接:(链接)You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can ... 阅读全文
posted @ 2015-10-12 17:53 skycore 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant di... 阅读全文
posted @ 2015-10-12 17:28 skycore 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?解题思路:先将矩阵选... 阅读全文
posted @ 2015-10-11 22:11 skycore 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given apatternand a stringstr, find ifstrfollows the same pattern.Herefollowmeans a full match, such that there is a bijection between a lett... 阅读全文
posted @ 2015-10-11 13:20 skycore 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after r... 阅读全文
posted @ 2015-10-11 10:45 skycore 阅读(124) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页