leetcode筆記:Valid Sudoku
一.題目描述Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules:h
hdu4722 Good Numbers(數位dp)
Good NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (
C++字符串格式化庫:CPPFormatLibrary
這個是很久之前寫的,去年總結了一下,將其單獨提取出來,作為一個開源庫放到了GitHub上,然而CPPFormat之類的名字都已經被搶注了,結果只好注
[leetcode] 139 Word Break
這題可以用DFS做,但是更好的方法是使用DP,這種類型的DP感覺還是接觸的稍微有些少。題目中只要求源串分出來的詞只要都在字典裡就好,所以我們可以用dp[i] 表
leetcode筆記:Count and Say
一.題目描述The count-and-say sequence is the sequence of integers beginning as follow
[C/C++]_[初級]_[替換過濾utf8字符串裡無效字符]
場景:1. 分析數據時,獲取到的數據是字符串,但是有可能不是正確的完整的utf8字符串,打印出來或輸出到文件時表現出來的就是顯示亂碼.這時候就需要過
leetcode筆記:Power of two
一. 題目描述Given an integer, write a function to determine if it is a power of two.二
leetcode筆記:Set Matrix Zeroes
一.題目描述Given a m*n matrix, if an element is 0, set its entire row and column to 0
leetcode筆記:Gas Station
一.題目描述There are N gas stations along a circular route, where the amount of gas a
leetcode筆記:Plus One
一.題目描述Given a number represented as an array of digits, plus one to the number.二