[Leetcode]完全平方数

题目   代码  class Solution { public: int numSquares(int n) { vector<int> dp(n + 1, INT_MAX); dp[0] = 0; for (int i = 0; i <= n; ++i) { for (int j = 1; i
相关文章
相关标签/搜索