ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number
of rows like this: (you may want to display this pattern in a fixed font for better legibility)
...
分类:
其他 时间:
2015-04-03 17:28:28
收藏:
0 评论:
0 赞:
0 阅读:
258
Redis是Remote Dictionary Server(Redis) 的缩写,或许光听名字你就能猜出它大概是做什么的。不错,它是一个由Salvatore Sanfilippo编写的key-value存储系统,是一个使用ANSI C语言编写、遵守BSD协议、支持网络、可基于内存亦可持久化的日志型的Key-Value数据库,并提供多种语言的API。...
分类:
其他 时间:
2015-04-03 17:28:07
收藏:
0 评论:
0 赞:
0 阅读:
240
cocos2d-x 3.3 源码分析...
分类:
其他 时间:
2015-04-03 17:27:18
收藏:
0 评论:
0 赞:
0 阅读:
166
我一个项目的代码上线,是先checkout出代码然后整体copy过去的,可以避免在线上直接svn拉代码时候影响服务。
其中有这么两句:find . -type d -name ".svn" | xargs rm -rf
find script/ -type f -exec dos2unix -o {} \;感觉xargs和exec很像,就学习了一下两者的使用和区别。
-exec
1.参...
分类:
其他 时间:
2015-04-03 17:25:48
收藏:
0 评论:
0 赞:
0 阅读:
256
“Google Earth与ArcGIS数据交互”系列共分为四篇,此为最后一篇。主要解决DEM的下载及用下载到的DEM进行三维建模。...
分类:
其他 时间:
2015-04-03 17:25:18
收藏:
0 评论:
0 赞:
0 阅读:
133
标注是显示在地图上的文字信息,它是出图中不可或缺的重要元素。标注的样式丰富,并且放置位置灵活,因此带来了对标注控制的难度。例如地质图里的上下标,或是一些分式的标注,就必须使用代码编程来实现。这篇文章就主要结合几个实例来讨论一下标注的使用技巧,以及在ArcGIS软件中的实现。...
分类:
其他 时间:
2015-04-03 17:25:07
收藏:
0 评论:
0 赞:
0 阅读:
317
水题,直接贴代码,注意几种控制浮点输出的方法:e格式,以指数形式输出实数。g格式:自动选f格式或e格式中较短的一种输出,且不输出无意义的零。
代码:
//poj 3940
//sep9
#include
using namespace std;
const int maxL=64;
int cnt[maxL+10];
double color[maxL];
double area[maxL]...
分类:
其他 时间:
2015-04-03 17:24:48
收藏:
0 评论:
0 赞:
0 阅读:
176
说到png图片压缩,可能很多人知道TinyPNG这个网站。但PS插件要钱(虽然有破解的),Developer API要连到他服务器去,不提网络传输速度,Key也是有每月限制的。
但是貌似tinyPNG是使用了来自于 pngquant 的技术,至少在 http://pngquant.org/ 中是如此声称的:TinyPNG and Kraken.io — on-line in...
分类:
其他 时间:
2015-04-03 17:23:17
收藏:
0 评论:
0 赞:
0 阅读:
343
回文数猜想
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4940 Accepted Submission(s): 2958
Problem Description
一个正整数,如果从左向右读(称之为正序数)和从右...
分类:
其他 时间:
2015-04-03 17:23:07
收藏:
0 评论:
0 赞:
0 阅读:
406
Problem Description
As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the railway.
Input
The input contains sever...
分类:
其他 时间:
2015-04-03 17:22:37
收藏:
0 评论:
0 赞:
0 阅读:
240
简介
我老婆 Farhana 想要继续软件开发生涯(之前因为我们的第一个孩子出生,她不得不放弃)。我已经有了一些软件设计和开发的经验,所以这几天我就在试着帮助她学习OOD。
由于我早年在软件开发的经验,我总是发现无论一个技术问题看上去多么难搞,只要从现实生活的角度去解释或用对话的方式去讨论总能让它变得更简单。关于OOD,我们已经有了许多成果丰硕的讨论,我觉得有人可能发现这是一个学习OOD...
分类:
其他 时间:
2015-04-03 17:22:28
收藏:
0 评论:
0 赞:
0 阅读:
293
xtrabackup 2.2.8自动备份脚本,自动检测是否有全备和增量备份文件....
分类:
其他 时间:
2015-04-03 17:21:48
收藏:
0 评论:
0 赞:
0 阅读:
296
题目描述:
对一个字符串中的所有单词,如果单词的首字母不是大写字母,则把单词的首字母变成大写字母。
在字符串中,单词之间通过空白符分隔,空白符包括:空格(' ')、制表符('\t')、回车符('\r')、换行符('\n')。
输入:
输入一行:待处理的字符串(长度小于100)。
输出:
可能有多组测试数据,对于每组数据,
输出一行:转换后的字符串。
样例输入:...
分类:
其他 时间:
2015-04-03 17:21:17
收藏:
0 评论:
0 赞:
0 阅读:
248
#include
using namespace std;
#include
bool isPalindromeNumber(long num)
{
if(num<0)
return false;
long temp=num;
long y=0;
while(temp)
{
y=y*10+temp%10;
temp/=10;
}
return num==y;
re...
分类:
其他 时间:
2015-04-03 17:21:00
收藏:
0 评论:
0 赞:
0 阅读:
208
??
问题描述:
Reverse digitsof an integer.
Example1: x =123, return 321
Example2: x =-123, return -321
问题分析:反转算法并不难,关键在于对溢出问题的考虑
代码:
public class Solution {
public int reverse(int x) {...
分类:
其他 时间:
2015-04-03 17:20:28
收藏:
0 评论:
0 赞:
0 阅读:
289
题目链接:Search in Rotated Sorted Array
II
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to...
分类:
其他 时间:
2015-04-03 17:19:38
收藏:
0 评论:
0 赞:
0 阅读:
209
题目链接:Remove Duplicates from Sorted
List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2-...
分类:
其他 时间:
2015-04-03 17:19:18
收藏:
0 评论:
0 赞:
0 阅读:
136
题目链接:Remove Duplicates from Sorted
List
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, r...
分类:
其他 时间:
2015-04-03 17:19:07
收藏:
0 评论:
0 赞:
0 阅读:
125
题目链接:Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
...
分类:
其他 时间:
2015-04-03 17:18:58
收藏:
0 评论:
0 赞:
0 阅读:
326
最近有个需求是把USB3.0强制转换成USB2.0,也就是让操作系统把硬件上的3.0识别成2.0 。从网上找到了如下内容,顿时心里暖暖的,特拿来分享一下。
1. Linux下的操作,其中 设备号为 USB3.0 总线设备的设备号,可以通过 lspci -nn | grep xHCI 查出来
It's possible. It involves changing configuratio...
分类:
其他 时间:
2015-04-03 17:18:47
收藏:
0 评论:
0 赞:
0 阅读:
602