7月24:完全平方数

题目如下: 思路: class Solution {    public int numSquares(int n) {     int dp[] = new int[n + 1];     Arrays.fill(dp, Integer.MAX_VALUE);     // bottom case     dp[0] = 0;       // pre-calculate the square 
相关文章
相关标签/搜索