@@ -0,0 +1,201 @@
+public boolean noTriples(int%5B%5D nums) %7B%0A  for(int i=0; i%3C(nums.length-2); i++)%7B%0A    int first = nums%5Bi%5D;%0A    if(nums%5Bi+1%5D == first && nums%5Bi+2%5D == first)%7B%0A      return false;%0A    %7D%0A  %7D%0A  return true;%0A%7D%0A

solve no triples