Akash Mahajan
BAN USER
Comments (4)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
1
of 1 vote
Your solution includes invalid as well as repeated paths and it does not follows the constraints of android lock.
- Akash Mahajan January 25, 2016Comment hidden because of low score. Click to expand.
0
of 0 vote
boolean rand_bit()
{
int a = 0;
for(int i = 0;i<y;i++)
{
a+=rand_bit_p();
}
return (a/(2*x)==0?false:true);
}
Comment hidden because of low score. Click to expand.
0
of 0 vote
suppose the given pointer is ptr;
we can call realloc(ptr,1). if the new address of ptr is same as older then it was a heap variable. If it changes then its a stack variable. The program might crash if its a stack variable.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
The solution has 1 problem. Lets say if 5th thread is finished, then any thread from 1 to 6 can acquire semaphore.
- Akash Mahajan May 15, 2016