题目链接:Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid paren...
分类:
其他好文 时间:
2015-02-04 23:22:51
阅读次数:
189
Q:Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are
all ...
分类:
其他好文 时间:
2015-02-04 21:52:50
阅读次数:
187
1 assign mcu_xxx_addr = (rd_after_wr_reg || reg_valid_write_trans) ? 2 haddr_reg[ADDR_WIDTH+1:2] : haddr[ADDR_WIDTH+1:2]; 3 4 assig...
分类:
其他好文 时间:
2015-02-04 21:43:13
阅读次数:
176
题目链接:点击打开链接
题意:给定常数d 和 n,表示n个点的树,每个点有点权
问:有多少个点集使得点集中的点两两可达且最大点权-最小点权
思路:
对于每个点,计算包含这个点且这个点作为点集中的最小点权时的个数,枚举每个点。
import java.io.PrintWriter;
import java.text.DecimalFormat;
import java.util.Array...
分类:
其他好文 时间:
2015-02-04 20:29:37
阅读次数:
154
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
主要就是判断一个字符串是不是一个数字,这个题目不是很难,主要是要把所有的情况理清楚
首先有一些情况是允许的
1....
分类:
其他好文 时间:
2015-02-04 18:42:37
阅读次数:
130
1、问题描述:使用客户证书在Xcode6.1.1上进行打包测试,出现如下问题,查看网上也很多类似错误且解决办法各异。2、我的解决办法:让客户将开发、发布证书重新revoke掉之后重新创新并给到p12证书进行导入,更新Profile配置文件随即便成功打包。(这里注意同时有多个应用在使用同一个账户的开发...
分类:
移动开发 时间:
2015-02-04 12:42:01
阅读次数:
208
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are
all va...
分类:
其他好文 时间:
2015-02-04 09:27:00
阅读次数:
108
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2015-02-04 00:19:40
阅读次数:
225
使用Xcode可以很方便地将以前的应用编译成64位程序,基本过程如下:1.使用Xcode5打开原有项目。2.将支持的设备改成“iOS7”。3.在“BuildSetting”中将“Architectures”改成“StandardArchitectures(including64-bit)”。4.运行测试程序,解决编译过程出现的问题。
分类:
其他好文 时间:
2015-02-03 11:20:10
阅读次数:
155
1.FFmpeg build for android random architectures with example jni
https://github.com/appunite/AndroidFFmpeg
2.ijkplayer - Android/iOS 基于FFMPEG库的播放器
http://git.oschina.net/bbcallen/ijkplayer
git下载...
分类:
其他好文 时间:
2015-02-02 23:18:45
阅读次数:
290