糖醋里脊

有召唤,爱自由.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年12月7日

摘要: Animating Views 在View Animation中,对View应用Animation并没有改变View的属性,所以有效区域还是应用动画之前的区域,比如你把一按钮移动以后,点击按钮并没有任何反应,必须要到他初始位置点击才可以。一开始button移到200位置以后,点击button并没有... 阅读全文

posted @ 2015-12-07 11:43 糖醋里脊er 阅读(186) 评论(0) 推荐(0)

2015年11月5日

摘要: 先引用hellocharts-library-.jar然后在layout中设置 package com.example.chardemo;import java.util.ArrayList;import java.util.List;import lecho.lib.hellocharts.... 阅读全文

posted @ 2015-11-05 15:22 糖醋里脊er 阅读(3068) 评论(0) 推荐(0)

2015年9月16日

摘要: .大数求差,给两个字符串(1-100位),求他们的差,如果是负数,则输出负数。如:“1111111111”,“1234678899879"输出:-1233567788768 1 package com.huawei; 2 3 import java.math.BigDecimal; 4 5 pu... 阅读全文

posted @ 2015-09-16 09:39 糖醋里脊er 阅读(190) 评论(0) 推荐(0)

2015年9月9日

摘要: Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is great... 阅读全文

posted @ 2015-09-09 15:43 糖醋里脊er 阅读(163) 评论(0) 推荐(0)

2015年9月8日

摘要: Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re... 阅读全文

posted @ 2015-09-08 20:32 糖醋里脊er 阅读(138) 评论(0) 推荐(0)

2015年9月4日

摘要: 注意所有的有可能输入。判断正负数。是否溢出。 1 public class Solution { 2 public int myAtoi(String str) { 3 if(str == null || str.length() ==0 ) return 0; 4 ... 阅读全文

posted @ 2015-09-04 10:16 糖醋里脊er 阅读(189) 评论(0) 推荐(0)

摘要: 判断一个数字是否是回文数,尝试不用其他额外空间。注意:负数也有可能成为回文数吗?如果你想让int转为string,注意不用其他空间这个约束。你也可以翻转一个int,但是有可能会溢出。 1 public class Solution { 2 public boolean isPalindrom... 阅读全文

posted @ 2015-09-04 10:14 糖醋里脊er 阅读(146) 评论(0) 推荐(0)

摘要: 1 mport java.util.Collection; 2 import java.util.Collections; 3 import java.util.HashMap; 4 import java.util.Map; 5 import java.util.Scanner; 6 7 8... 阅读全文

posted @ 2015-09-04 10:13 糖醋里脊er 阅读(337) 评论(0) 推荐(0)

2015年9月3日

摘要: Given an integern, return the number of trailing zeroes inn!.给一个数字n,返回它n!数字后面有多少个0。public class Solution { public int trailingZeroes(int n) { ... 阅读全文

posted @ 2015-09-03 09:01 糖醋里脊er 阅读(138) 评论(0) 推荐(0)

2015年8月23日

摘要: Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.判断一个字符串是不是另一个的子字符串 1 publi... 阅读全文

posted @ 2015-08-23 17:26 糖醋里脊er 阅读(139) 评论(0) 推荐(0)