'''

class Solution {

public:

vector<int> productExceptSelf(vector<int>& nums) {

int prod=1;

int count=0;

for(auto c:nums){

if(c==0){count++;}

else {prod = c*prod ;}

}

for(register int i = 0 ; i < nums.size();++i){

if(nums[i]==0 && count==1)nums[i]=prod;

else if(nums[i]==0 && count>1)nums[i]=0;

else if (count>=1) nums[i]=0;

else nums[i]=prod/nums[i];

}

return nums;

}

};

'''