题目 LC696 思路 https://www.cnblogs.com/cnoodle/p/13469190.html 思路非常规题 知识点 新建一个ArrayList(长度不确定的数组),来统计每个数字/字符连续出现的次数 普通数组 counts[i] ArrayList counts.get(i) 代码 class Solution { public int countBinarySubstrings(String s) { //数组,长度未知,统计每个数字连续出现的次数 List<Integer>