摘要: 题目: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / \ 2 3Return 6. 解题思路:最长路...阅读全文
posted @ 2014-05-27 18:09 mickole 阅读(314) 评论(0) 编辑
摘要: 题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You m...阅读全文
posted @ 2014-05-27 10:29 mickole 阅读(127) 评论(0) 编辑
摘要: 题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy...阅读全文
posted @ 2014-05-26 20:25 mickole 阅读(117) 评论(0) 编辑
摘要: 题目: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stoc...阅读全文
posted @ 2014-05-26 20:04 mickole 阅读(205) 评论(0) 编辑
摘要: Myeclipse10中servlet模版存放的位置与早些的版本不同,它存放在: MyEclipse\Common\plugins中的下面那个jar包中 com.genuitec.eclipse.wizards_9.0.0.me201108091322.jar 不用解压,直接用解压缩工具打开即可,然后在文件夹\templates中就可找到Servlet.java.阅读全文
posted @ 2014-05-11 09:33 mickole 阅读(121) 评论(0) 编辑
摘要: 问题一: java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap : (Unsupported major.minor version 55.0) 原因是因为jdk版本太低了,tomcat8支持,更换更高级的jdk或者使用低版本的tomcat。 这里我将jdk换成jdk1.8: 但重启t...阅读全文
posted @ 2014-05-08 21:05 mickole 阅读(2793) 评论(0) 编辑
摘要: 问题: 403 Access DeniedYou are not authorized to view this page.If you have already configured the Manager application to allow access and you have used your browsers back button, used a saved book-...阅读全文
posted @ 2014-05-07 22:56 mickole 阅读(4590) 评论(1) 编辑
摘要: 题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 解题思路: 主要有三种: 第一种:...阅读全文
posted @ 2014-05-01 13:22 mickole 阅读(119) 评论(0) 编辑
摘要: 题目: 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 single digit. Add the two numbers and return it as a...阅读全文
posted @ 2014-04-29 14:07 mickole 阅读(158) 评论(0) 编辑
摘要: 题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3....阅读全文
posted @ 2014-04-29 12:27 mickole 阅读(406) 评论(0) 编辑