首页 > 其他
[LeetCode] Remove Nth Node From End of List
This is a classic problem of linked list. You may solve it using two pointers. The tricky part lies in the head pointer may also be the one that is re...
分类:其他   时间:2015-07-07 22:23:03    收藏:0  评论:0  赞:0  阅读:234
runtime实际应用---
原文地址:http://my.oschina.net/panyong/blog/403562runtime : 运行时机制首先必须明白的:1.是什么1> runtime是一套比较底层的纯C语言API, 属于1个C语言库, 包含了很多底层的C语言API2> 平时编写的OC代码, 在程序运行过程中, 其...
分类:其他   时间:2015-07-07 22:22:43    收藏:0  评论:0  赞:0  阅读:274
UVALive Proving Equivalences (强连通分量,常规)
题意:给一个有向图,问添加几条边可以使其强连通。思路: 按照大白书p322做。tarjan算法求强连通分量,然后缩点求各个强连通分量的出入度,答案是max(入度为0的缩点个数,出度为0的缩点个数)。 1 #include 2 #define LL long long 3 #define pii .....
分类:其他   时间:2015-07-07 22:22:12    收藏:0  评论:0  赞:0  阅读:273
上下抖动的进度条
#import @interface TJShakeProgressView : UIView@property(nonatomic,assign)CGFloat progress;@end//// TJShakeProgressView.m// TJShakeProgressView//// Cr...
分类:其他   时间:2015-07-07 22:22:02    收藏:0  评论:0  赞:0  阅读:285
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 ...
分类:其他   时间:2015-07-07 22:21:42    收藏:0  评论:0  赞:0  阅读:221
centos7初步命令
x window图形界面是ctrl+alt+f1,其他2-6都是命令行格式。可以互相转,也可以在命令行下 startx命令进入图形界面。 锁屏命令:ctral+alt+l命令行界面: . 此层目录 .. 上一层目录 - 前一个工作目录 ~ 目前用户身份所在的文件夹 ~account account这...
分类:其他   时间:2015-07-07 22:21:33    收藏:0  评论:0  赞:0  阅读:345
欢迎使用CSDN-markdown编辑器
Mac 环境配置 显示所有文件夹 显示:defaults write com.apple.finder AppleShowAllFiles -bool true 隐藏:defaults write com.apple.finder AppleShowAllFiles -bool false Homebrew: ruby -e "$(curl -fsSL https://raw.githu...
分类:其他   时间:2015-07-07 21:17:32    收藏:0  评论:0  赞:0  阅读:337
stretchableImageWithLeftCapWidth气泡拉伸
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight; 从点(topCapHeight,topCapHeight)往右下角开始拉伸...
分类:其他   时间:2015-07-07 21:17:22    收藏:0  评论:0  赞:0  阅读:253
STM8S---独立按键IO口设置及按下事件问题
GPIO设置 按键检测 1 连续按键检测短按长按 关键代码1 GPIO设置????????????????STM8 I/O 口引脚配置表 Px_DDR Px_CR1 Px_CR2 I/O 方式 引脚状态 0 0 0 输入 悬浮输入 0 0 1 输入 上拉输入 0 1 0 输入 中断悬浮输入 0 1 1 输入...
分类:其他   时间:2015-07-07 21:17:13    收藏:0  评论:0  赞:0  阅读:2450
CentOS 配置防火墙操作实例(启、停、开、闭端口)
CentOS 配置防火墙操作实例(启、停、开、闭端口):   注:防火墙的基本操作命令: 查询防火墙状态: [root@localhost ~]# service   iptables status   停止防火墙: [root@localhost ~]# service   iptables stop   启动防火墙: [root@l...
分类:其他   时间:2015-07-07 21:15:13    收藏:0  评论:0  赞:0  阅读:281
hdu4055 dp
http://acm.hdu.edu.cn/showproblem.php?pid=4055 Problem Description The signature of a permutation is a string that is computed as follows: for each pair of consecutive elements of the permutat...
分类:其他   时间:2015-07-07 21:14:53    收藏:0  评论:0  赞:0  阅读:435
36.如何使用定时任务
在app后台开发中,经常需要执行一些定时任务,例如,定期清理一下项目产生的垃圾文件啊,或者要某段时间,执行一些业务逻辑等等,都需要使用到定时任务。...
分类:其他   时间:2015-07-07 21:14:51    收藏:0  评论:0  赞:0  阅读:291
讯飞语音输入法解包即用,绿色便携免安装版
讯飞语音输入法解包即用,绿色便携免安装版...
分类:其他   时间:2015-07-07 21:14:50    收藏:0  评论:0  赞:0  阅读:311
在O(1)时间删除链表结点
struct ListNode {        int  m_nValue;        ListNode*  m_pNext; }; void DeleteNode(ListNode** pListHead,ListNode* pToBeDeleted);         并不是一定需要得到被删除的结点的前一个结点,可以将被删除结点的后一个结点的内容复制到被删除结点,然后...
分类:其他   时间:2015-07-07 21:14:23    收藏:0  评论:0  赞:0  阅读:355
cf 251 B Playing with Permutations 暴力 分类讨论
题意: 题意是,给q数列,和s数列。然后p数列初始为1-n。然后通过p[q[i]]=p[i],或者p[i]=p[q[i]]这两种变换,问有没有可能在k次变换后刚刚p数列为s数列。并且在这k次变换过程中,p数列不能等于s数列。p数列一开始就为s数列也不行。 做法:因为两个变换是相反的,所以可以通过两次分别两种变换来抵消。计算出p通过第一种变换要多少步可以达到s数列,然后第二种变换要多少步,然后分类讨论。...
分类:其他   时间:2015-07-07 21:14:13    收藏:0  评论:0  赞:0  阅读:289
memcpy函数用法
memcpy函数用法 .分类: VC++ VC++ mfc matlab 2011-12-01 19:17 14538人阅读 评论(0) 收藏 举报 null 原型:extern void *memcpy(void *dest, void *src, unsigned int count);用法:#...
分类:其他   时间:2015-07-07 21:12:12    收藏:0  评论:0  赞:0  阅读:235
runtime实际应用
原文地址:http://my.oschina.net/panyong/blog/403562runtime : 运行时机制首先必须明白的:1.是什么1> runtime是一套比较底层的纯C语言API, 属于1个C语言库, 包含了很多底层的C语言API2> 平时编写的OC代码, 在程序运行过程中, 其...
分类:其他   时间:2015-07-07 21:12:02    收藏:0  评论:0  赞:0  阅读:241
Configuring SSL on Enterprise Manager and the SLB (Release 12.1.0.2 and later)
From: http://docs.oracle.com/html/E24089_42/ha_setup.htm#sthref833If the SLB is configured to use Third-Party/Custom SSL certificates, you must ensure...
分类:其他   时间:2015-07-07 21:11:52    收藏:0  评论:0  赞:0  阅读:296
CALayer创建和和如何隐藏隐式动画
//修改CALay属性会产生隐式动画- (void)viewDidLoad { [super viewDidLoad]; // 创建图层 CALayer *layer = [CALayer layer]; layer.backgroundColor = [UIColo...
分类:其他   时间:2015-07-07 21:11:32    收藏:0  评论:0  赞:0  阅读:334
ZOJ 3794 Greedy Driver spfa
意甲冠军:特定n点,m我们将有优势。邮箱容量。初始点1,在完n。启动邮箱满油。以下m油耗起跑线代表终点,这个边缘(是长度)然后下面给出了一些m表达P加油站,能够填补免费。行P个数字表示加油站的点标。再以下一个整数Q以下Q行 u v 表示在u点有销售站,能够卖掉邮箱里的随意数量的油,每以单位v元。问跑...
分类:其他   时间:2015-07-07 21:11:22    收藏:0  评论:0  赞:0  阅读:324
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!