我想找到一个特定数字的最长序列,即1出现在数组中.假设数组是{1,0,0,0,1,1,1,1,0,0,1,1}; 答案应为4,因为连续出现最多四次.
algorithm math
algorithm ×1
math ×1