Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

CELEBRITY PROBLEM 2 gfg 7-18-21

Input:
N = 2
M[][] = {{0 1},
         {1 0}}
Output: -1
Explanation: The two people at the party both
know each other. None of them is a celebrity.
Source by practice.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #CELEBRITY #PROBLEM #gfg
ADD COMMENT
Topic
Name
5+4 =