上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: 题目描述:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> ... 阅读全文
posted @ 2015-12-22 09:47 scottwang 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, g... 阅读全文
posted @ 2015-12-22 09:45 scottwang 阅读(218) 评论(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... 阅读全文
posted @ 2015-12-13 21:11 scottwang 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.blogjava.net/dreamstone/archive/2007/08/08/134968.htmlfile的这几个取得path的方法各有不同,下边说说详细的区别概念上的区别:(内容来自jdk,个人感觉这个描述信息,只能让明白的人明白,不明白的人看起来还是有点难度... 阅读全文
posted @ 2015-12-08 09:23 scottwang 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non... 阅读全文
posted @ 2015-12-07 21:33 scottwang 阅读(584) 评论(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 raini... 阅读全文
posted @ 2015-12-07 20:38 scottwang 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 详细参考http://www.cnblogs.com/ITtangtang/archive/2012/05/01/2477563.html 阅读全文
posted @ 2015-12-07 15:26 scottwang 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 写的非常详细,可以参考http://www.cnblogs.com/ITtangtang/p/3978102.html 阅读全文
posted @ 2015-12-06 23:20 scottwang 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm shou... 阅读全文
posted @ 2015-12-06 00:10 scottwang 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each nu... 阅读全文
posted @ 2015-12-04 22:03 scottwang 阅读(187) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页