上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 46 下一页
摘要: Given two words (beginWordandendWord), and a dictionary, find the length of shortest transformation sequence frombeginWordtoendWord, such that:Only on... 阅读全文
posted @ 2015-06-13 23:34 卖程序的小歪 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjac... 阅读全文
posted @ 2015-06-13 18:53 卖程序的小歪 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1/** * Definition for a binary tree node... 阅读全文
posted @ 2015-06-12 17:59 卖程序的小歪 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()... 阅读全文
posted @ 2015-06-12 17:47 卖程序的小歪 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/finewings/article/details/5718133字符串提取去掉指定前缀1. ${varible#pattern} 从头开始,左往右,删除最短的一个pattern结尾的字符串,即截取第一个pattern结尾子串之后的字符串... 阅读全文
posted @ 2015-06-10 11:43 卖程序的小歪 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or minus... 阅读全文
posted @ 2015-06-10 01:16 卖程序的小歪 阅读(965) 评论(0) 推荐(0) 编辑
摘要: Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ... 阅读全文
posted @ 2015-06-09 00:57 卖程序的小歪 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 写服务端程序,在开发环境下打开远程调试还是非常有用的,还原现场非常容易,让请求方再发个请求即可。如果下来本地调试的话很多环境与管理服务的地址配置什么的都可能不一样,增加了可变因素。在需要启动服务调试的jvm启动参数中加入(注意:参数要排在启动类名的前面)-Xdebug -Xrunjdwp:trans... 阅读全文
posted @ 2015-06-08 11:05 卖程序的小歪 阅读(9932) 评论(0) 推荐(2) 编辑
摘要: Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except... 阅读全文
posted @ 2015-06-07 13:56 卖程序的小歪 阅读(2005) 评论(0) 推荐(0) 编辑
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr... 阅读全文
posted @ 2015-06-07 13:41 卖程序的小歪 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 46 下一页