最近使用NDK进行项目开发过程中,debug模式下logcat输出以下错误(PS:正常run没有任何错误,JNI方法执行没有问题):
05-28 13:48:10.422: W/dalvikvm(15024): JNI WARNING: input is not valid Modified UTF-8: illegal start byte 0xa5
05-28 1...
分类:
其他好文 时间:
2014-06-05 06:58:36
阅读次数:
1128
Validate if a given string is numeric.Some
examples:"0"=>true" 0.1 "=>true"abc"=>false"1
a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2014-06-04 20:54:02
阅读次数:
326
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 ...
分类:
其他好文 时间:
2014-06-04 20:21:51
阅读次数:
246
使用VC 6.0 mfc实现编程刚学的图像学,挺难学的,show 代码吧void
CLineView::OnDraw(CDC* pDC) { CLineDoc* pDoc =
GetDocument();ASSERT_VALID(pDoc);// TODO: add draw code for na...
分类:
其他好文 时间:
2014-06-04 18:15:36
阅读次数:
627
Given a string containing only digits, restore
it by returning all possible valid IP address combinations.For
example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2014-06-03 14:06:24
阅读次数:
271
Given a binary tree, determine if it is a valid
binary search tree (BST).Assume a BST is defined as follows:The left subtree of
a node contains only n...
分类:
其他好文 时间:
2014-06-03 14:00:56
阅读次数:
281
题目链接判断字符串是否为回文串。附上代码: 1 class Solution { 2 public:
3 bool isPalindrome(string s) { 4 if (s.empty()) return true; // consider empty
string ...
分类:
其他好文 时间:
2014-05-30 21:48:12
阅读次数:
347
Given a stringsand a dictionary of wordsdict,
add spaces insto construct a sentence where each word is a valid dictionary
word.Return all such possibl...
分类:
其他好文 时间:
2014-05-30 16:28:34
阅读次数:
199
Given a string, determine if it is a
palindrome, considering only alphanumeric characters and ignoring cases.For
example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-05-30 16:24:31
阅读次数:
222
Evaluate the value of an arithmetic expression
inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an
integer or another express...
分类:
其他好文 时间:
2014-05-30 15:22:39
阅读次数:
301