a. 令图G 为一个环,环上的顶点数等于图 H 的顶点数。那么若G 是 H 的同构子图,则说明 H 存在 Rudrata 回路。于是知 Rudrata 回路事实上是子图同构问...
原题地址 https://leetcode.com/problems/minesweeper/description/ 题意 略 思路 简单的深度优先,根据不同情况更新。 坑...
原题地址 https://leetcode.com/problems/pacific-atlantic-water-flow/description/ 题意 给定一个数字矩阵...
原题地址 https://leetcode.com/problems/continuous-subarray-sum/description/ 题意 判断一个数组中是否有连续...
原题地址 https://leetcode.com/problems/house-robber-ii/description/ 题意 之前做过一题House Robber,意...
原题地址 https://leetcode.com/problems/maximum-product-subarray/description/ 题意 给一个数组,找出能从子...
原题地址 https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee...
原题地址 https://leetcode.com/problems/word-break/description/ 题意 给出一个string和一个string的vecto...
原题地址 https://leetcode.com/problems/predict-the-winner/description/ 题意 给定一个数组,玩家1和玩家2依次从...
原题地址 https://leetcode.com/problems/min-cost-climbing-stairs/description/ 题意 给定一个cost数组,...
原题地址 https://leetcode.com/problems/perfect-squares/description/ 题意 给定一个数n,求最少要几个平方数(1,4...
原题地址 https://leetcode.com/problems/palindromic-substrings/description/ 题意 找出所有的回文子串(sub...
原题地址 https://leetcode.com/problems/ones-and-zeroes/description/ 题意 给定一个包含01串的vector,同时给...
原题地址 https://leetcode.com/problems/arithmetic-slices-ii-subsequence/description/ 题意 思路