摘要: 说明 给你一个整数数组 arr,请你判断数组中是否存在连续三个元素都是奇数的情况:如果存在,请返回 true ;否则,返回 false 。 代码 public boolean threeConsecutiveOdds(int[] arr) { int mun = 0; for (int i=0; i 阅读全文
posted @ 2023-02-10 14:26 149616 阅读(23) 评论(0) 推荐(0)