https://oj.leetcode.com/problems/minimum-path-sum/Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichmini...
分类:
其他好文 时间:
2015-01-23 17:49:43
阅读次数:
175
原题链接:https://oj.leetcode.com/problems/valid-parentheses/
检查是否是有效的括号序列。这里的解法是维护一个栈,如果是左括号,则push到栈中,如果是右括号,则检查栈顶的符号,如果是对应的做括号,则将之弹出。否则,则直接返回false。当字符串扫描到尾时,则检查栈是否是空,如果是空,则说明所有的括号都match上了。
clas...
分类:
其他好文 时间:
2015-01-23 16:30:25
阅读次数:
178
uva 11205 The broken pedometer
The Problem
A marathon runner uses a pedometer with which he is having problems. In the pedometer the symbols are represented by seven segments (or LEDs):
Bu...
分类:
其他好文 时间:
2015-01-23 16:23:58
阅读次数:
119
https://oj.leetcode.com/problems/unique-paths-ii/Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique p...
分类:
其他好文 时间:
2015-01-23 14:39:35
阅读次数:
258
https://oj.leetcode.com/problems/string-to-integer-atoi/Implementatoito convert a string to an integer.Hint:Carefully consider all possible input case...
分类:
其他好文 时间:
2015-01-23 09:28:46
阅读次数:
167
前提是eclipse工程中每个子文件都没错,工程名上却显示了小红叉。打开【Window】->【Show View】->【General】->【Problems】,看看Problems窗口提示的错误。我的错误显示是:TargetruntimeApacheTomcatv6.0isnotdefined.这...
分类:
系统相关 时间:
2015-01-22 17:49:07
阅读次数:
181
https://oj.leetcode.com/problems/longest-palindromic-substring/Given a stringS, find the longest palindromic substring inS. You may assume that the ma...
分类:
其他好文 时间:
2015-01-22 17:24:11
阅读次数:
105
2015-01-22 Created By BaoXinjian 一、摘要Oracle Metalink 提供一个诊断并发程式进程的脚本This Script is made available for Diagnosing Common Problems Related to Concurrent...
分类:
数据库 时间:
2015-01-22 15:03:37
阅读次数:
158
http://ttlnews.blogspot.com/2010/01/attacking-memory-problems-on-android.html这篇文章是2010年1月份写的,其中有些已经不适合现在的Android机制了我将内存问题分为两种:OOM和堆栈溢出一个Android进程可以分配的...
分类:
移动开发 时间:
2015-01-22 12:51:08
阅读次数:
173
题目链接:https://oj.leetcode.com/problems/set-matrix-zeroes/
题目内容:
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
click to show follow up.
Follow u...
分类:
其他好文 时间:
2015-01-22 09:32:37
阅读次数:
193