自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 leetcode:count and say

The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as 

2015-09-18 16:54:02 221

原创 leetcode:Valid Palindrome

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a

2015-09-18 16:52:15 233

原创 猿题库:拆分字符串,求最大值

题目:给出一个由‘0’-‘9’数字构成的字符串,重新排列字符串的顺序,并将字符串拆分成两个非负整数a、b,可包含前缀0,求a+b的最大值。数据长度:2 实例:s = '123',cal(s) = '33'             s='999999999999991',cal(s) = '100000000000000' 分析:设计字符串、字符、整数的互相转换,以及整型上溢的问题。 pub

2015-09-15 15:02:20 569

原创 美图面试问到的一个题:求一个字符串中第一个仅出现一次的字符

题目:求一个字符串中第一个仅出现一次的字符 分析:字符不仅限于字母,还可以是标点、数字等,故ASCII码表共256个字符。以ASCII码值为下标,统计字符串中每个字符出现的个数,然后在遍历字符串,哪个的个数为1,即为所求。 public class Solution(){ public static void main(String[] args){ St

2015-09-15 14:52:30 340

原创 一道美团笔试题

记录一下自己笔试遇到的东西~ 题目:给定一个数组arr及数组长度len,求满足0 示例:arr[]={10,5}    len=2          返回:0public class Solution(){ public static int max_find(int[] list, int len) { if (list == null) { return -1;

2015-09-15 09:58:33 438

原创 ndk-r9d下ffmpeg-2.6.3的编译

环境: OS: ubuntu 12.04.3 android-ndk-r9d ffmpeg: 2.6.3   第一步:解压ffmpeg                 命令:tar jxvf ffmpeg-2.5.3.tar.bz2 第二步:在android-ndk-r9d/sources下新建ffmpeg-2/jni,复制解压后的ffmpeg-2.6.3至此文件夹。(放入samp

2015-06-17 16:47:16 656

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除