自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 匿名内部类引起的内存泄露——Handler和Thread

匿名内部类会持有外部类的引用,当内部类进行延时操作的时候,如果外部类是Activity,那么在执行destroy后,并不会被销毁,从而导致内存泄漏

2016-05-06 13:23:55 4216

原创 Android学习--Hello World

Android学习helloworld的书写方式,来看Android的界面的两种开发方式

2015-01-05 19:32:54 490

原创 Python学习——leetcode(Remove Nth Node From End of List)

删除倒数第n个节点

2014-12-18 16:05:47 264

原创 Python学习——leetcode(Valid Parentheses)

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 valid but "(]" and "([)]" are not.括号匹配问题

2014-12-18 15:37:08 337

原创 Python学习——leetcode(Balanced Binary Tree)

Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.如何判断一个二叉树是否为平衡二叉树,用python代码实现

2014-12-18 14:21:52 387

原创 Python学习——leetcode(Intersection of Two Linked Lists)

Write a program to find the node at which the intersection of two singly linked lists begins.

2014-12-18 13:59:51 345

原创 Python学习——leetcode(Binary Tree Level Order Traversal)

Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).

2014-12-18 13:22:17 323

原创 Python学习——leetcode(Compare Version Numbers)

Compare two version numbers version1 and version1.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.You may assume that the version strings are non-empty and contain only digits and the . character.The . character doe

2014-12-17 19:27:00 600

原创 Python学习——leetcode(Length of Last Word)

Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defined as a character sequence consists of non-space character

2014-12-17 16:36:46 653

原创 Python学习——leetcode(Merge Two Sorted Lists )

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.

2014-12-16 18:04:43 307

原创 Python学习——leetcode(Add Binary)

Add Binary:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".

2014-12-16 16:32:29 438

原创 Python学习——leetcode(Climbing Stairs)

Climbing Stairs

2014-12-16 15:52:08 345

原创 Python学习——leetcode(Remove Element)

Remove Element

2014-12-16 15:13:03 356

原创 Python学习——leetcode(Remove Duplicates from Sorted List)

Remove Duplicates from Sorted List-------Python accepted

2014-12-15 19:10:18 352

原创 Python学习——leetcode(Two Sum)

leetcoded使用Python语言解决Two Sum问题

2014-12-15 15:09:39 976

空空如也

空空如也

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

TA关注的人

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