package leetcode;

/**
 * https://leetcode.com/problems/three-consecutive-odds/
 */
public class Problem1550 {
    public boolean threeConsecutiveOdds(int[] arr) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem1550 prob = new Problem1550();
        System.out.println(prob.threeConsecutiveOdds(new int[]{2,6,4,1})); // false
        System.out.println(prob.threeConsecutiveOdds(new int[]{1,2,34,3,4,5,7,23,12})); // true
        System.out.println(prob.threeConsecutiveOdds(new int[]{1,2,3,4,5})); // false
    }
}

@@ -169,401 +169,313 @@
     
-// TODO%0A        return false;
+int count = 0;%0A        for (int i = 0; i %3C arr.length; i++) %7B
 %0A    
-%7D%0A%0A
+  
     
-public static void main(String%5B%5D args) %7B%0A        Problem1550 prob = new Problem1550();%0A        System.out.println(prob.threeConsecutiveOdds(new int%5B%5D%7B2,6,4,1%7D)); // false%0A        System.out.println(prob.threeConsecutiveOdds(new int%5B%5D%7B1,2,34,3,4,5,7,23,12%7D)); // true%0A        System.out.println(prob.threeConsecutiveOdds(new int%5B%5D%7B1,2,3,4,5%7D)); // false
+  if (arr%5Bi%5D %25 2 != 0) %7B%0A                count++;%0A            %7D else %7B%0A                if (count %3E= 3) %7B%0A                    return true;%0A                %7D%0A                count = 0;%0A            %7D%0A        %7D%0A        return count %3E= 3;
 %0A   

Solve problem 1550