一. 題目描述Given a triangle, find the minimum path sum from top to bottom. Each step
題目: Given a m x n matrix, if an element is 0, set its entire row and column
一. 題目描述You are a professional robber planning to rob houses along a street. Each
一. 題目描述Find the contiguous subarray within an array (containing at least one num
I 題目: Suppose a sorted array is rotated at some pivot unknown to you before
題目: You are a professional robber planning to rob houses along a street. Ea
很簡單的題目,模擬大數乘法。 思路: 第一個字符串的第i位乘以第二個字符串的第j位一定是結果的第i+j位,如果i+j已經有值,直接加上去就OK,並
之前寫了一個博客《 淺析C++中的初始化列表(區別賦值和初始化)》,講述了類的構造函數使用初始化列表來初始化成員變量。 現在,撇開過往不談,就談一談普通的變量賦
Write a program to find the n-th ugly number.Ugly numbers are positive numbers w
Convert a non-negative integer to its english words representation. Given input
Write a program to check whether a given number is an ugly number.Ugly numbers a
博客 [c++11特性之std::thread--初識](http://blog.csdn.net/wangshubo1989/article/details/
編寫一個程序統計輸入字符串中: 各個數字、空白字符、以及其他所有字符出現的次數。對於輸入字符,可用getchar實現,各個數字出現的次數通過下標統計法實現,對於
Given a pattern and a string str, find if str follows the same pattern.Here foll