標籤:Made a stupid bug....... When reverse the vector, stop it at mid. Otherwise, it will swap back......Mark!!!!!!!! 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 *
標籤:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a palindrome.Note:Have you consider that the string
標籤: 關於jetty,度娘可以搜到的資料這裡我就不多提了,只想寫一些自己特有的認識和在搭建mvn-jetty-plugin中遇到的問題。 這幾天一直在埋頭看一些文檔,這裡不得不感慨一下,真是有那麼一點頭疼。 Any changes you make are immediately reflected in the running instance of
標籤: 最近在使用yum方式安裝perl-DBD-MySQL時碰到了Temporary failure in name resolution,Trying other mirror。即命名解析失敗,嘗試使用其它鏡像。由於本機為最近安裝的新伺服器,下面是這個問題的現象描述及處理過程。1、故障現象###當前環境[[email protected] ~]# cat /etc/issueCentOS release 5.11 (Final)Kernel
標籤:Basic question. Use a queue to store Node, use two numbers to record current level node numbers and next level node numbers. 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 *
2015年Ubuntu最新Redmine的安裝和配置,ubunturedmine最近需要在公司內部搭建一個專案管理平台Redmine,在摸索了一天之後,終於配置成功,在這裡分享給大家。公司伺服器的系統是Ubuntu14.04,要安裝的是最新的Redmine3.0。由於Redmine是基於Ruby On Rails安裝的,所以第一步是安裝Ruby On Rails。這部分可以參考我的上一篇博文《Ubuntu Ruby On Rails安裝和配置》PostgreSQL安裝完Ruby On