最新 最热

scala String to Int

object StringUtils { /** * 判断字符串是否是纯数字组成的串,如果是,就返回对应的数值,否则返回0 * @param str * @return */ def strToInt(str: String): Int = { val regex = ......

2019-03-14
1

【每天一道编程系列-2018.2.22】(Ans)

Implement atoi to convert a string to an integer.   Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and a...

2019-03-14
1

Hibernate java.lang.String cannot be cast to Customer

如果不是取得单个字段的话就没有问题,去单个字段就会出现取到值了,但是拿不出来值,因为不知道得到的东西是什么类型的。说是String的吧,转换出错,说是对象吧,又抛出如题的异常。...

2019-02-28
1

Manacher算法 && Longest && Shortest Palindrome

Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by per...

2019-02-22
1

用TypedArray给自定义控件配置属性

(仅仅只是整理,以后用到直接来翻就行了) 比如有这样一个自定义控件(layout文件就不看了)

2019-02-21
1

LeetCode409 Longest Palindrome

Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.

2019-02-19
1

leetcode 67 Add Binary

Add Binary Total Accepted: 46815 Total Submissions: 189215 My Submissions

2019-01-18
1

每日一题(1)

如果不主动,除了时间,你什么都改变不了为了提供更大价值,将推出<每日一题>系列,未发表原创文章时将发表一期<每日一题>,在下一期公布答案及解析<每日一题>主要以陷阱题为主,容易出错的题目,比较考基础。最近在巩固基...

2019-01-17
1

Codeforces Round #527 (Div. 3) A. Uniform String(水题)

题目链接:http://codeforces.com/contest/1092/problem/A

2019-01-10
0

Leetcode Palindrome Number

Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.

2018-09-04
1