原创 665、Lintcode--2D不可變矩陣求和
題目要求 題目來源:LintCode 給一 二維矩陣,計算由左上角 (row1, col1) 和右下角 (row2, col2) 劃定的矩形內元素和. 假設 1. 你可以假設矩陣不變 2. 對函數 sumRegi
原创 178. Rank Scores
Rank Scores(LeetCode) 分數排名 Write a SQL query to rank scores. If there is a tie between two scores, both should have the
原创 192. Word Frequency
192. Word Frequency (leetcode) 統計單詞頻率 Write a bash script to calculate the frequency of each word in a text file wo
原创 Lintcode--2D不可變矩陣求和
題目要求 題目來源:LintCode 給一 二維矩陣,計算由左上角 (row1, col1) 和右下角 (row2, col2) 劃定的矩形內元素和. 假設 1. 你可以假設矩陣不變 2. 對函數 sumRegion
原创 Python2與Python3字符兼容問題的解決方案
Python2和Python3的字符兼容問題是非常明顯的原因: Python3默認編輯字符:UTF-8 Python2默認編譯字符:ASCII下面列舉出三種錯誤類型:第一種:SyntaxError: Non-A