2016年4月12日

332. Reconstruct Itinerary (leetcode)

摘要: Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tick 阅读全文

posted @ 2016-04-12 15:25 没结果的花 阅读(232) 评论(0) 推荐(0) 编辑

hibocoder 403 Forbidden

摘要: 描述 Little Hi runs a web server. Sometimes he has to deny access from a certain set of malicious IP addresses while his friends are still allow to acce 阅读全文

posted @ 2016-04-12 15:20 没结果的花 阅读(179) 评论(0) 推荐(0) 编辑

hihocoer Front size

摘要: 描述 Steven loves reading book on his phone. The book he reads now consists of N paragraphs and the i-th paragraph contains ai characters. Steven wants 阅读全文

posted @ 2016-04-12 15:16 没结果的花 阅读(249) 评论(0) 推荐(0) 编辑

leetcode 337.House Robber III

摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文

posted @ 2016-04-12 15:12 没结果的花 阅读(175) 评论(0) 推荐(0) 编辑

leetcode338 Counting Bits

摘要: 题目: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation a 阅读全文

posted @ 2016-04-12 15:01 没结果的花 阅读(226) 评论(0) 推荐(0) 编辑

service生命周期及使用知识点总结

摘要: Service是android四大组件之一,当我们要写一些操作,如播放音乐(后台,前台)等需要其的帮助 需要注意的是,service与ui是在一个线程中,而ui不允许执行耗时操作,所以在service中直接执行也有问题,要在service中new出一个子线程! 以下是整理相关基础知识的资料,以备复习 阅读全文

posted @ 2016-04-12 14:54 没结果的花 阅读(484) 评论(0) 推荐(0) 编辑

Intent传递数据之Bundle

摘要: 之前见到时直接使用,不知其理,在网上查了相关资料,算是有所了解,整理如下: bundle的用法: Bundle相当于Map类,就是一个映射,用Bundle绑定数据,便于数据处理 它主要作用于Activity之间的数据传递. 两个activity之间的通讯可以通过bundle类来实现,做法就是: 一、 阅读全文

posted @ 2016-04-12 14:48 没结果的花 阅读(6489) 评论(0) 推荐(0) 编辑

Fragment生命周期总结整理笔记(转)

摘要: Fragment的生命周期 因为Fragment必须嵌入在Acitivity中使用,所以Fragment的生命周期和它所在的Activity是密切相关的。 如果Activity是暂停状态,其中所有的Fragment都是暂停状态;如果Activity是stopped状态,这个Activity中所有的F 阅读全文

posted @ 2016-04-12 14:47 没结果的花 阅读(427) 评论(0) 推荐(0) 编辑

AsyncTask知识整理笔记

摘要: Android的AsyncTask比Handler更轻量级一些,适用于简单的异步处理。(但是,要注意!!!!使用更轻量级,实际执行却反之,因为AsyncTask里封装了Handler,本质也是使用Handler!!!!) 首先明确Android之所以有Handler和AsyncTask,都是为了不阻 阅读全文

posted @ 2016-04-12 14:44 没结果的花 阅读(198) 评论(0) 推荐(0) 编辑

关于try catch finally的容易忽视的一点

摘要: try中有return时,finally语句仍执行 在return之后执行 且该操作影响该return! 阅读全文

posted @ 2016-04-12 14:42 没结果的花 阅读(125) 评论(0) 推荐(0) 编辑

导航