摘要:
leetcode 每日一题 926. 将字符串翻转到单调递增 func minFlipsMonoIncr(s string) int { var dp0,dp1 int for _,data := range s { i := int(data) dp1 = min(dp0,dp1) + ('1' 阅读全文
摘要:
leetcode 每日一题 473. 火柴拼正方形 class Solution { int ave = 0; int num = 4; public boolean makesquare(int[] matchsticks) { int sum = 0; for (int matchstick : 阅读全文