Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

CELEBRITY PROBLEM gfg 7-18-21

Input:
N = 3
M[][] = {{0 1 0},
         {0 0 0}, 
         {0 1 0}}
Output: 1
Explanation: 0th and 2nd person both
know 1. Therefore, 1 is the celebrity. 
Source by practice.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #CELEBRITY #PROBLEM #gfg
ADD COMMENT
Topic
Name
6+3 =