2. Celebrity Problem | IT Placement Preparation
Problem
- Consider there is a party going.
- There are total n members in the party.
- Among those n, one member is a celebrity.
- This means n-1 members are non celebrity and one member is a celebrity.
- There is a unique thing about the celebrity guy, The celebrity guy does not know any of the non celebrity members and all the non celebrity members knows the celebrity guy.
- The goal is to find the celebrity guy among those n members in 0(n).
Read full article from 2. Celebrity Problem | IT Placement Preparation
No comments:
Post a Comment