码迷,mamicode.com
首页 > 2015年01月14日 > 全部分享
hdu 3706 单调队列水题
单调队列水题...
分类:其他好文   时间:2015-01-14 15:33:37    阅读次数:132
sed系列:行或者模式匹配删除特定行
“p” command prints the buffer (remember to use -n option with “p”)  “d” command is just opposite, its for deletion. ‘d’ will delete the pattern space buffer and immediately starts the next cycle.  ...
分类:其他好文   时间:2015-01-14 15:34:14    阅读次数:157
java采用3种方式判断用户输入的字符串是否为回文
一、描述 回文的定义:"回文数" 就是正读倒读都一样的整数。如奇数个数字:98789, 这个数字正读是98789,倒读也是98789;偶数个数字3223也是回文数。 我们今天将回文数扩展为字母和数字组合回文,如adgu6776ugda也是回文,我们采用三种方式判断这种类型的字符串是否为回文: 1.调用StringBuffer类对象的reverse()方法,将字符串翻转后与之前的字符串比较,如...
分类:编程语言   时间:2015-01-14 15:34:38    阅读次数:293
sed系列:多命令执行
Syntax:  #sed -e 'command' -e 'command' filename  Note: -e option is optional for sed with single command. sed will execute the each set of command while processing input from the pattern buffer.  ...
分类:其他好文   时间:2015-01-14 15:35:56    阅读次数:164
LeetCode--Convert Sorted List to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *nex...
分类:其他好文   时间:2015-01-14 15:33:27    阅读次数:169
解决 Previous operation has not finihsed; run cleanup if it was interrupted Please execute Cleanup
更新时遇到这个问题,解决方法如下: 把根目录下的.svn目录删除掉,再checkout,然后就会出现下面的加version的action。   疯吻IT...
分类:其他好文   时间:2015-01-14 15:35:45    阅读次数:135
UITabBarController,UITabBarItem设置
self.tabBarController = [[UITabBarController alloc] init];          HomeViewController *homeVC = [[HomeViewController alloc] init];     UINavigationController *nav1 = [[UINavigationController al...
分类:其他好文   时间:2015-01-14 15:35:23    阅读次数:154
LeetCode--Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:其他好文   时间:2015-01-14 15:33:12    阅读次数:141
【Android学习笔记】DatePickerDialog和TimePickerDialog日期选择器和时间选择器
(1)布局文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height...
分类:移动开发   时间:2015-01-14 15:33:34    阅读次数:316
如何获得外部看到的外网IP
curl ifconfig.me 原理是这样的:...
分类:其他好文   时间:2015-01-14 15:33:24    阅读次数:101
【新年计划】2015,给程序员的9大计划,没有过于宏伟,不再显得遥不可及
制定新年计划是我们最喜欢做的事情之一,我们总是会在年底的时候对新的一年有一个很好的计划,但后来就把它们都抛到脑后了,直到最后全部忘记。也许,我们的计划总是过于宏伟,很多事情都是做不到的,甚至显得遥不可及。但是,今年一定会有所不同,这篇文章就是专为程序员准备的九大新年计划,供各位程序员参考。 1. 学习一门新的不同风格的编程语言 这是很需要的一件事,因为如果你只了解一种语言,它就会局限你解决问题的能力和你的职业发展。所以在新的一年,你应该花些时间学习一门新的语言,体验不同的编程风格,并学以致用。...
分类:其他好文   时间:2015-01-14 15:32:34    阅读次数:141
PHP fgets按行读取字符串和explode分割字符串为数组
file.txt  类型|所在目录|文件|大小|创建时间  File|C:\Program Files\Java\jre7\lib\zi\America\Indiana|Vevay|724|2014-10-13 09:36 File|C:\Program Files\Java\jre7\lib\zi\America\Indiana|Vincennes|884|2014-10-13 0...
分类:编程语言   时间:2015-01-14 15:34:06    阅读次数:233
UCOSII查询消息队列的状态
在调用OSQQuery时,需要这样定义:OS_Q_DATA qdata;OSQQuery(q1, &qdata);不能这样定义:OS_Q_DATA *qdata;OSQQuery(q1, qdata);会触发HardFault_Handler()中断,原因就是没有申请空间。
分类:其他好文   时间:2015-01-14 15:32:05    阅读次数:289
总结最近游戏中活动出现被刷问题。
问题:活动描述:有一个签到活动,就是用户每天只能签到一次, 签到后并发放奖励,就是因为会发放奖励所以导致活动,有好多人开挂来刷这个活动,导致有些人,一天领取多个奖励的现象,php代码逻辑:部门一个同事php代码逻辑是这样的,签到用redis来记录是否签到,签到成功就发奖励逻辑顺序是:先判断是否满足签...
分类:其他好文   时间:2015-01-14 15:32:23    阅读次数:147
解决 Previous operation has not finihsed; run ‘cleanup’ if it was interrupted Please execute the ‘Cleanup’ command
更新时遇到这个问题,解决方法如下: 把根目录下的.svn目录删除掉,再checkout,然后就会出现下面的加version的action。 疯吻IT
分类:其他好文   时间:2015-01-14 15:30:55    阅读次数:207
Java初学几个程序背诵
1.Hello worldclass first{ public static void main(String[] args){ System.out.println("Hello world"); }}2.数组 -> for循环 1 class first 2 { 3 ...
分类:编程语言   时间:2015-01-14 15:32:02    阅读次数:213
验证码生成器
生成验证码的方式有很多种,如下则是比较简单的实现,且运用了正余弦曲线来扭曲验证码字符。 unit AuthenticodeGenerate;interfaceuses SysUtils, Windows, ExtCtrls, Graphics;function GenerateAuthenti...
分类:其他好文   时间:2015-01-14 15:30:33    阅读次数:998
1452条   上一页 1 ... 39 40 41 42 43 44 45 ... 86 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!