footloose
BAN USER
Comments (3)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Please be more clear...
1. What do we mean by numbers are coming.
Does it mean that we have a binary stream random integers.
2. What about the starting position of 1.
Does it mean we have to determine the location of most significant 1 in the binary representation of any integer.
Also, are these integers sorted already as they come into the system. I guess not but someone has presented an answer based on that assumption.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
initializations_
Assume that the queue has functions named remove() and insert(). Also, we have a function named generate() to create data to be entered in the queue
reader_code
Writer code is similar
writer_code
Please let me know if there is a starvation or deadlock.
- footloose June 26, 2015