码迷,mamicode.com
首页 >  
搜索关键字:retain cycle    ( 2217个结果
LeetCode with Python -> Linked List
141. Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? # Definition for ...
分类:编程语言   时间:2018-01-08 22:32:30    阅读次数:249
BZOJ1023:[SHOI2008]仙人掌图——题解
http://www.lydsy.com/JudgeOnline/problem.php?id=1023 Description 如果某个无向连通图的任意一条边至多只出现在一条简单回路(simple cycle)里,我们就称这张图为仙人掌 图(cactus)。所谓简单回路就是指在图上不重复经过任何一 ...
分类:其他好文   时间:2018-01-08 11:00:05    阅读次数:143
Android 异步加载神器Loader全解析
在之前呢,我们经常会有这种需求,比如在某个activity,或者某个fragment里面,我们需要查找某个数据源,并且显示出来,当数据源自己更新的时候,界面也要及时响应。 当然咯,查找数据这个过程可能很短,但是也可能很漫长,为了避免anr,我们都是开启一个子线程去查找,然后通过handler来更新我 ...
分类:移动开发   时间:2018-01-07 16:00:18    阅读次数:272
Flask 上下文管理
flask的request和session设置方式比较新颖,如果没有这种方式,那么就只能通过参数的传递。 flask是如何做的呢? 1.Python 实现的本地线程 保证即使是多个线程,自己的值也是互相隔离。 3. Flask内部实现的本地线程 Flask源码 from flask import s ...
分类:其他好文   时间:2018-01-06 19:06:42    阅读次数:374
leetcode-141. Linked List Cycle
141. Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 题意: 判断一个链表是否为一个环 ...
分类:其他好文   时间:2018-01-04 00:27:34    阅读次数:167
环链表相关的题目和算法[LeetCode]
这篇文章讨论一下与链表的环相关的题目,我目前遇到的一共有3种题目。 1.判断一个链表是否有环(LeetCode相关题目:https://leetcode.com/problems/linked-list-cycle/description/) 设置两个指针,初始值都指向头,一快一慢,slow每次前进 ...
分类:编程语言   时间:2017-12-28 23:25:28    阅读次数:158
SSD ECC中的LDPC编解码原理
转自:http://blog.csdn.net/zhuzongpeng/article/details/78899198 目前SSD中ECC纠错代码主要两种BCH和LDPC。不过,随着SSD对ECC纠错技术要求越来越高,BCH纠错码开始有些吃力,所以,LDPC纠错码是发展趋势,也是最新最主流的纠错码 ...
分类:其他好文   时间:2017-12-28 17:19:25    阅读次数:218
CF 847 A. Union of Doubly Linked Lists(模拟)
题目链接:http://codeforces.com/problemset/problem/847/A 题目: Doubly linked list is one of the fundamental data structures. A doubly linked list is a sequen ...
分类:其他好文   时间:2017-12-25 19:27:34    阅读次数:154
android 水波纹效果实现
1.在drawable文件下,新建seletor,作为button的背景,这里我用的是两个圆角的shape shape_btn_cycle_normal shape_btn_cycle_press 2.在drawable-v21下,新建同selector名的ripple,如上,我的selector是 ...
分类:移动开发   时间:2017-12-25 13:47:49    阅读次数:254
142. Linked List Cycle II
"欢迎fork and star:Nowcoder Repository github" 142. Linked List Cycle II 题目 解答 解析 题目来源 "142. Linked List Cycle II" ...
分类:其他好文   时间:2017-12-23 15:48:48    阅读次数:172
2217条   上一页 1 ... 51 52 53 54 55 ... 222 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!