摘要:
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],... 阅读全文
摘要:
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo... 阅读全文
摘要:
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.class Solution {public: int romanToInt(st... 阅读全文
摘要:
用php做了一个网站,其中一个统计工能,需要每周定时用行。想看看有什么方法,之前看别人的东西,一般有2中方式,一个是php自带的定时任务,一个是用系统带的,linux下的crontab和windows下的定时任务。 之前用了php自带的定时任务工能,发现实现起来很简单,中间也没出现很多问题,同... 阅读全文
摘要:
用thinkphp做了一个网站,部署到ubuntu上的时候需要,服务器用的是nginx,本身不支持pathinfo模式,需要修改配置文件,使其能够用pathinfo。 我用的是虚拟主机的方式。之前配置了好久,总是出现各种各样的问题,最后实在不行,直接用rewrite模式,配置还比较简单。后来不... 阅读全文