標籤:二叉樹 leetcode dfs Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf
標籤:The SuspectsTime Limit: 1000MS Memory Limit: 20000KTotal Submissions: 26919 Accepted: 13152DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global
標籤:You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the sum of numbers in a
標籤:1.三個數中選最大值using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication18{ class Program { static void Main(string[] args) { Console.Write(""); int a = int.
標籤:The key to solving this problem is to design a hash table to record the information. This link posts a nice desing using an unordered_map. I rewrite the code below. 1 class Solution { 2 public: 3 vector<string> anagrams(vector<string&
標籤:lamp apache mysql php#!/bin/bash#author by martin 2015-07-22#auto install lampH_FILE=httpd-2.2.31.tar.gzH_DIR=httpd-2.2.31M_FILE=mysql-5.1.72.tar.gzM_DIR=mysql-5.1.72P_FILE=php-5.4.22.tar.gzP_DIR=php-5.4.22if [ -z $1 ];then