showing results for - "celebrity problem gfg 7 18 21"
Lucy
05 Jan 2021
1Input:
2N = 3
3M[][] = {{0 1 0},
4         {0 0 0}, 
5         {0 1 0}}
6Output: 1
7Explanation: 0th and 2nd person both
8know 1. Therefore, 1 is the celebrity. 
similar questions
queries leading to this page
celebrity problem gfg 7 18 21