freecodecamp 初级算法地址戳这里 Reverse a String 翻转字符串 Factorialize a Number 计算一个整数的阶乘 Check for Palindromes 如果给定的字符串是回文,返回true,反之,返回false。 Find the Longest Wo ...
分类:
编程语言 时间:
2016-12-05 16:46:14
阅读次数:
374
implode() 函数返回由数组元素组合成的字符串。 语法:implode(separator,array) separator 分割符 array 数组。 strpos() 函数查找字符串在另一字符串中第一次出现的位置。 语法:strpos(string,find,start); find 字符 ...
分类:
其他好文 时间:
2016-12-05 14:34:26
阅读次数:
139
An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations: Assume you have a dicti ...
分类:
其他好文 时间:
2016-12-05 14:23:13
阅读次数:
148
解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element 'beans'.Referenced file contains errors (http://www.springframework.org/schema/ ...
分类:
编程语言 时间:
2016-12-05 09:54:57
阅读次数:
449
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and nums[j] ...
分类:
其他好文 时间:
2016-12-05 07:51:59
阅读次数:
220
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two ...
分类:
其他好文 时间:
2016-12-05 07:48:18
阅读次数:
204
模板cat delbak.sh #!/bin/sh location="/root/sqlbak/" find $location -mtime +30 -type f |xargs rm -f ps: location 是设置查找的目录--mtime +30 是设置时间为30天前-type f 这 ...
分类:
系统相关 时间:
2016-12-05 07:40:51
阅读次数:
184
radius Area1.0 3.142.0 12.563.0 28.2599999999999984.0 50.245.0 78.5 ...
分类:
编程语言 时间:
2016-12-04 23:13:43
阅读次数:
589
题目描述 小c同学认为跑步非常有趣,于是决定制作一款叫做《天天爱跑步》的游戏。«天天爱跑步»是一个养成类游戏,需要玩家每天按时上线,完成打卡任务。 这个游戏的地图可以看作一一棵包含 个结点和 条边的树, 每条边连接两个结点,且任意两个结点存在一条路径互相可达。树上结点编号为从到的连续正整数。 现在有 ...
分类:
其他好文 时间:
2016-12-04 20:26:50
阅读次数:
243
Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n is positive and will fit within the range of a 32-bi ...
分类:
其他好文 时间:
2016-12-04 14:22:32
阅读次数:
216