题目Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with co...
分类:
其他 时间:
2015-08-10 22:14:28
收藏:
0 评论:
0 赞:
0 阅读:
226
1.为eclipse增加c和c++的开发插件
Help中的install new software
选择 Helios-http://download.eclipse.org/release/helios
等待展开,选择Programinglanguage
选择c/c++ 开发工具
一路next下去。
同意licenses
安装成功会提示是不是确认重启ecl...
分类:
移动平台 时间:
2015-08-10 22:14:19
收藏:
0 评论:
0 赞:
0 阅读:
344
iOS9 Beat5是出来了。这一次的升级带来了全新的壁纸。
信息:
发布时间 2015.8.7
壁纸大小 45.6 M - 16P
分辨率 1242X2208
预览:
戳进来下载:
链接: http://pan.baidu.com/s/1o69WzrG
密码: vq29
@ M...
分类:
移动平台 时间:
2015-08-10 22:14:08
收藏:
0 评论:
0 赞:
0 阅读:
405
Python的布尔类型有两个值:True和False(注意大小写要区分)
逻辑运算:
1、与:and(两个都为True,结果才为True)
2、或:or(只要一个为True,则为True)
3、非:not(把True变为False,把False变为True)
短路运算:
布尔类型还可以与其他数据类型进行逻辑运算,Python规定:0、空字符串、None为False,其他...
分类:
编程语言 时间:
2015-08-10 22:14:06
收藏:
0 评论:
0 赞:
0 阅读:
301
消息机制
main.xml文件代码。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
androi...
分类:
其他 时间:
2015-08-10 22:13:52
收藏:
0 评论:
0 赞:
0 阅读:
145
HTTP Content-type 对照表
文件扩展名
Content-Type(Mime-Type)
文件扩展名
Content-Type(Mime-Type)
.*( 二进制流,
不知道下载文件类型)
application/octet-stream
.tif
image/tiff...
分类:
移动平台 时间:
2015-08-10 22:13:38
收藏:
0 评论:
0 赞:
0 阅读:
484
Problem Description
As we all know, in the computer science, an integer A is in the range of 32-signed integer, which means the integer A is between -2^31 and (2^31)-1 (inclusive), and A is a 64-signe...
分类:
其他 时间:
2015-08-10 22:13:36
收藏:
0 评论:
0 赞:
0 阅读:
267
快乐虾http://blog.csdn.net/lights_joy/欢迎转载,但请保留作者信息解析以太网帧的过程是构建以太网帧的逆过程,当我们接收到一个以太网帧时,仍然以上一节中的ARP帧为例:当收到这样一个数据帧时,首先应当构造一个Packet存放数据: PtrPacket>src = CreatePacket>(buffer,len);然后取出以太网包头: //解析以太网包头 ...
分类:
其他 时间:
2015-08-10 22:13:35
收藏:
0 评论:
0 赞:
0 阅读:
317
Python2.7.3 学习——准备Windows下开发环境...
分类:
编程语言 时间:
2015-08-10 22:13:08
收藏:
0 评论:
0 赞:
0 阅读:
187
我竟然还不会LCT QAQ真是太弱了
必须学LCT QAQ
——————————————————线割分是我www———————————-...
分类:
其他 时间:
2015-08-10 22:12:58
收藏:
0 评论:
0 赞:
0 阅读:
535
Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 1...
分类:
其他 时间:
2015-08-10 22:12:48
收藏:
0 评论:
0 赞:
0 阅读:
265
//n个任务,m台机器
//每个任务都有开始工作的时间,结束的时间和需要一台机器工作的天数
//每个任务的工作可以断开,只需要在规定的时间内用机器工作规定天数
//在同一天,一个任务只能被一台机器工作
//问能否安排时间使得所有的任务都能在规定时间内完成
//对任务和其工作的时间建立权值为1的边
//在建立一个超级源点和一个超级汇点
//从源点向任务引入权值为该任务需要工作的天数,从每...
分类:
其他 时间:
2015-08-10 22:12:38
收藏:
0 评论:
0 赞:
0 阅读:
194
Language:
Default
开关问题
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 6656
Accepted: 2541
Description
有N个相同的开关,每个开关都与某些开关有着联系,每当你打开或者关闭某个开关的时候,其他的与此开关...
分类:
其他 时间:
2015-08-10 22:12:28
收藏:
0 评论:
0 赞:
0 阅读:
268
github中搜索Androidannotation。里面也有很详细的讲解过程。包括eclipse版本和IntellJ的相关配置。因为自己使用的是AndroidStudio所以在这里讲解下AndroidStudio的配置。在网上搜了很多,在自己配置过程中又遇到了不同的麻烦。所以在这里总结一下。这里贴出github中这个相关的链接:https://github.com/excilys/android...
分类:
移动平台 时间:
2015-08-10 22:12:18
收藏:
0 评论:
0 赞:
0 阅读:
454
题目链接:http://poj.org/problem?id=2104
题目意思很简单,就是给你一个序列,查询某区间第K大的数;
方法1:时间复杂度O(N*M);不支持更新操作,代码简单;
利用结构体排序,保留原数据的顺序。
#include
#include
#include
#define N 100000
using namespace std;
/*
这个思路很好;时...
分类:
其他 时间:
2015-08-10 22:12:08
收藏:
0 评论:
0 赞:
0 阅读:
347
HDU 2255 奔小康赚大钱(二分匹配之KM算法)...
分类:
编程语言 时间:
2015-08-10 22:11:48
收藏:
0 评论:
0 赞:
0 阅读:
197
前一篇blog linux内核内存分配(一、基本概念)
主要是分析linux内核内存的分配和物理页分配函数接口。但是在实际的操作中,不一定所有内存申请都需要一个物理页,很多只是需要分配几K大小的内存就可以。所以就需要更小的内存分配函数。刚开始看这个有点不懂,不过懂了就很简单了。哈哈。
摘抄《深入linux设备驱动程序内核机制》的一段话:slab分配器的基本思想是,先利用页面分配...
分类:
系统服务 时间:
2015-08-10 22:11:38
收藏:
0 评论:
0 赞:
0 阅读:
840
题目链接:
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=600&problem=1398&mosmsg=Submission+received+with+ID+14106648题意:
m条路,每条路上必须维持速度v,现在有一辆车,启动能量和结束能量...
分类:
其他 时间:
2015-08-10 22:11:28
收藏:
0 评论:
0 赞:
0 阅读:
730
最近刚把开发平台从windows迁移到Mac,发现有些东西也是需要根据自己需要安装的,所以搜了下,发现网上各路大神推荐brew,看完介绍,感觉不错,搞起安装(这里说下心得,在Mac app store中有很多常用的软件都找不到,例如大名鼎鼎的eclipse,sublime
text等,其实是个人想的太狭隘了,以为在Mac上的安装的软件都是要从app store中下载,其实不然,有网友这样说:在...
分类:
系统服务 时间:
2015-08-10 22:11:19
收藏:
0 评论:
0 赞:
0 阅读:
241
一. 工具使用245.使用androidstudio时,不知道什么原因svn不见了Android Studio missing Subversion pluginPlease make sure that the “SubversionIntegration” plugin is enabled in Preferences > Plugins248.androidstudio 如何自动import...
分类:
移动平台 时间:
2015-08-10 22:11:09
收藏:
0 评论:
0 赞:
0 阅读:
303