79388589

Date: 2025-01-26 13:27:41
Score: 1
Natty:
Report link
    int switches (int bulbs[]{
        int n = bulbs.length; 
        int c = 0;
        for(int i=0; i<n; i++){
           if(bulbs[i] == c%2){
                c=c+1;
           }
        }
        return c;
   }
        
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arjun Bhosale