首页 > 其他
今日小结 4.4
Adapter 适配器 —— OK List接口——OK 1. Adapter 适配器 接口implements 的应用之一,适配器类是一个抽象类,处于自定义类与接口之间, 可以自定义一个类继承这个抽象类来有选择性的实现接口中的抽象方法。 因为如果一个自定义类(非抽象类)要实现一个接口,则必须要覆写 ...
分类:其他   时间:2016-04-06 08:11:29    收藏:0  评论:0  赞:0  阅读:219
Nginx负载均衡
CentOS系统搭建Nginx负载均衡 一、关于CentOS系统介绍 CentOS(Community Enterprise Operating System,中文意思是:社区企业操作系统)是Linux发行版之一,它是来自于Red Hat Enterprise Linux依照开放源代码规定释出的源代 ...
分类:其他   时间:2016-04-06 08:11:18    收藏:0  评论:0  赞:0  阅读:256
【BZOJ-1458】士兵占领 最大流
1458: 士兵占领 Description 有一个M * N的棋盘,有的格子是障碍。现在你要选择一些格子来放置一些士兵,一个格子里最多可以放置一个士兵,障碍格里不能放置士兵。我们称这些士兵占领了整个棋盘当满足第i行至少放置了Li个士兵, 第j列至少放置了Cj个士兵。现在你的任务是要求使用最少个数的 ...
分类:其他   时间:2016-04-06 08:11:08    收藏:0  评论:0  赞:0  阅读:219
lintcode-medium-Sort Colors II
Given an array of n objects with k different colors (numbered from 1 to k), sort them so that objects of the same color are adjacent, with the colors ...
分类:其他   时间:2016-04-06 08:10:48    收藏:0  评论:0  赞:0  阅读:174
Map/Reduce简单样例----wordcount
1.1 MapReduce编程模型 MapReduce采用"分而治之"的思想,把对大规模数据集的操作,分发给一个主节点管理下的各个分节点共同完成,然后通过整合各个节点的中间结果,得到最终结果。简单地说,MapReduce就是"任务的分解与结果的汇总"。 在Hadoop中,用于执行MapReduce任 ...
分类:其他   时间:2016-04-06 08:10:38    收藏:0  评论:0  赞:0  阅读:294
lintcode-medium-Sort Letters by Case
Given a string which contains only letters. Sort it by lower case first and upper case second. Notice It's NOT necessary to keep the original order of ...
分类:其他   时间:2016-04-06 08:10:08    收藏:0  评论:0  赞:0  阅读:224
action使用大全
1.Intent的用法: (1)Action跳转 1、 使用Action跳转,当程序AndroidManifest.xml中某一个 Activity的IntentFilter定义了包含Action,如果恰好与目标Action匹配,且其IntentFilter中没有定义其它的Type或Category ...
分类:其他   时间:2016-04-06 08:09:18    收藏:0  评论:0  赞:0  阅读:296
[BZOJ3098] Hash Killer II
Description 这天天气不错,hzhwcmhf神犇给VFleaKing出了一道题: 给你一个长度为N的字符串S,求有多少个不同的长度为L的子串。 子串的定义是S[l]、S[l + 1]、... S[r]这样连续的一段。 两个字符串被认为是不同的当且仅当某个位置上的字符不同。 VFleaKin ...
分类:其他   时间:2016-04-06 08:08:58    收藏:0  评论:0  赞:0  阅读:228
[BZOJ4195] [NOI2015] 程序自动分析 (并查集)
Description 在实现程序自动分析的过程中,常常需要判定一些约束条件是否能被同时满足。 考虑一个约束满足问题的简化版本:假设x1,x2,x3,…代表程序中出现的变量,给定n个形如xi=xj或xi≠xj的变量相等/不等的约束条件,请判定是否可以分别为每一个变量赋予恰当的值,使得上述所有约束条件 ...
分类:其他   时间:2016-04-06 08:08:48    收藏:0  评论:0  赞:0  阅读:228
公众号自定义菜单添加特殊符号
下图👇是我在CodeL公众号菜单上设置的特殊符号,你也可以关注CodeL公众号查看。 网页打开图标可能是黑白的 ,微信查看是彩色的。 是不是很漂亮 🚶 🚼 🙌 👈看,不只是菜单,内容里面也可以加入这些特殊符号,接下来我们就来看看是如何实现的 下面这张特殊符号的表来源:土锤哥 有了这份宝典, ...
分类:其他   时间:2016-04-06 08:08:28    收藏:0  评论:0  赞:0  阅读:248
lintcode-medium-Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:其他   时间:2016-04-06 07:04:58    收藏:0  评论:0  赞:0  阅读:154
MP4和MP3的合成
目标,将MP3中的声音合成到MP4中去。 采用的第三方库:MP4Parser, Muxing Audio/Video The API and the process is straight-forward: You wrap each raw format file into an appropri ...
分类:其他   时间:2016-04-06 07:04:49    收藏:0  评论:0  赞:0  阅读:351
4. Median of Two Sorted Arrays (二分法;递归的结束条件)
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh ...
分类:其他   时间:2016-04-06 07:04:38    收藏:0  评论:0  赞:0  阅读:221
lintcode-medium-Single Number III
Given 2*n + 2 numbers, every numbers occurs twice except two, find them. Example Given [1,2,2,3,4,4,5,3] return 1 and 5 Given [1,2,2,3,4,4,5,3] return ...
分类:其他   时间:2016-04-06 07:04:08    收藏:0  评论:0  赞:0  阅读:337
部署 DevStack - 每天5分钟玩转 OpenStack(17)
本节按照以下步骤部署 DevStack 实验环境,包括控制节点和计算节点 创建虚拟机 按照物理资源需求创建 devstack-controller 和 devstak-compute 虚拟机 安装操作系统 安装 Ubuntu 14.04,并配置 eth0 的 IP devstack-controll ...
分类:其他   时间:2016-04-06 07:03:58    收藏:0  评论:0  赞:0  阅读:267
[Angular 2] Property Binding
Property Binding is bind property NOT attribute! So 'class' is attribute on DOM, but 'class.active' is an property. 'aria-label' is attribute, so need ...
分类:其他   时间:2016-04-06 07:03:48    收藏:0  评论:0  赞:0  阅读:227
lintcode-medium-Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Example Given a matrix [ [1,2], [0,3] ], return[[0,2],[0 ...
分类:其他   时间:2016-04-06 07:03:38    收藏:0  评论:0  赞:0  阅读:198
lintcode-medium-Simplify Path
Given an absolute path for a file (Unix-style), simplify it. Example "/home/", => "/home" "/a/./b/../../c/", => "/c" "/home/", => "/home" "/a/./b/../. ...
分类:其他   时间:2016-04-06 07:03:29    收藏:0  评论:0  赞:0  阅读:272
LeetCode "Flatten Nested List Iterator"
Besides the common stack-based solutions, here is another recursive NestedIterator solution :) ...
分类:其他   时间:2016-04-06 07:03:18    收藏:0  评论:0  赞:0  阅读:239
正则19-20
我已经描述了构造正则表达式的大量元素,还有一些我没有提到的东西。下面是未提到的元素的列表,包含语法和简单的说明。你可以在网上找到更详细的参考资料来学习它们--当你需要用到它们的时候。如果你安装了MSDN Library,你也可以在里面找到关于.net下正则表达式详细的文档。 ...
分类:其他   时间:2016-04-06 07:02:38    收藏:0  评论:0  赞:0  阅读:325
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!