• 2024-09-22返回数组中的最大元素个数
    /***返回数组中的最大元素个数*约束:*数组大小1<=size<=10to5*数组元素大小1<=arrList[i]<=10to7*@paramcandles*@return*/publicstaticintbirthdayCakeCandles(List<Integer>candles){if(cand
  • 2024-06-18LeetCode 2055. Plates Between Candles
    原题链接在这里:https://leetcode.com/problems/plates-between-candles/description/题目:Thereisalongtablewithalineofplatesandcandlesarrangedontopofit.Youaregivena 0-indexed string s consistingofcharacters '*' and '|' only,