
a. 令圖G 為一個(gè)環(huán)偷崩,環(huán)上的頂點(diǎn)數(shù)等于圖 H 的頂點(diǎn)數(shù)。那么若G 是 H 的同構(gòu)子圖阐斜,則說(shuō)明 H 存在 Rudrata 回路衫冻。于是知 Rudrata 回路事實(shí)上是子圖同構(gòu)問(wèn)...
原題地址 https://leetcode.com/problems/minesweeper/description/ 題意 略 思路 簡(jiǎn)單的深度優(yōu)先谒出,根據(jù)不同情況更新隅俘。 坑...
原題地址 https://leetcode.com/problems/pacific-atlantic-water-flow/description/ 題意 給定一個(gè)數(shù)字矩陣...
原題地址 https://leetcode.com/problems/continuous-subarray-sum/description/ 題意 判斷一個(gè)數(shù)組中是否有連續(xù)...
原題地址 https://leetcode.com/problems/house-robber-ii/description/ 題意 之前做過(guò)一題House Robber贰镣,意...
原題地址 https://leetcode.com/problems/maximum-product-subarray/description/ 題意 給一個(gè)數(shù)組,找出能從子...
原題地址 https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee...
原題地址 https://leetcode.com/problems/word-break/description/ 題意 給出一個(gè)string和一個(gè)string的vecto...
原題地址 https://leetcode.com/problems/predict-the-winner/description/ 題意 給定一個(gè)數(shù)組蹬音,玩家1和玩家2依次從...
原題地址 https://leetcode.com/problems/min-cost-climbing-stairs/description/ 題意 給定一個(gè)cost數(shù)組上煤,...
原題地址 https://leetcode.com/problems/perfect-squares/description/ 題意 給定一個(gè)數(shù)n著淆,求最少要幾個(gè)平方數(shù)(1,4...
原題地址 https://leetcode.com/problems/palindromic-substrings/description/ 題意 找出所有的回文子串(sub...
原題地址 https://leetcode.com/problems/ones-and-zeroes/description/ 題意 給定一個(gè)包含01串的vector永部,同時(shí)給...
原題地址 https://leetcode.com/problems/arithmetic-slices-ii-subsequence/description/ 題意 思路