上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页

2015年4月28日

摘要: 题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sing... 阅读全文
posted @ 2015-04-28 22:02 承续缘 阅读(151) 评论(0) 推荐(0) 编辑

2015年4月27日

摘要: 题目:Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime c... 阅读全文
posted @ 2015-04-27 20:27 承续缘 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complex... 阅读全文
posted @ 2015-04-27 14:37 承续缘 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题目:There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following re... 阅读全文
posted @ 2015-04-27 10:48 承续缘 阅读(227) 评论(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 costsco... 阅读全文
posted @ 2015-04-27 00:01 承续缘 阅读(206) 评论(0) 推荐(0) 编辑

2015年4月26日

摘要: 题目: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 space?... 阅读全文
posted @ 2015-04-26 23:16 承续缘 阅读(181) 评论(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 total num... 阅读全文
posted @ 2015-04-26 20:30 承续缘 阅读(202) 评论(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 you cl... 阅读全文
posted @ 2015-04-26 17:52 承续缘 阅读(163) 评论(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 digit is... 阅读全文
posted @ 2015-04-26 16:52 承续缘 阅读(200) 评论(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?代码:class Solutio... 阅读全文
posted @ 2015-04-26 16:29 承续缘 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页

导航