标签:coder title pid off ber pre question 剑指offer div
public class Solution { public int GetNumberOfK(int [] array , int k) { int count = 0; for(int i =0;i < array.length;i++){ if(k == array[i]){ count++; continue; } if(count !=0){ break; } } return count; } }
标签:coder title pid off ber pre question 剑指offer div
原文地址:https://www.cnblogs.com/MoonBeautiful/p/13070112.html