Power set of given set:
http://www.geeksforgeeks.org/power-set/
http://www.geeksforgeeks.org/power-set/
1 2 3 4 | int bit(int n)
{
return (!n + (n|~n));
}
|
1 2 3 4 5 6 7 8 9 | sum=0;
while(bit stream is coming)
{
sum=sum<<1+1*(current bit);
if(sum%3==0)
printf(“divisible\n”);
else
printf(“not divisible”);
}
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | char *str=INPUT STRING
int i=0,flag=0;
while(str[i])
{
if(str[i++]==’a’)
{
while(str[i]==’b’)
i++;
if(str[i++]==’c’)
{
printf(“substring found”);
flag=1;
break;
}
}
}
if(!flag)
printf(“substring not found”);
|