Anurag Gupta’s Post

View profile for Anurag Gupta, graphic

MAH@IIT Madras Finalist | Java | Python | Django | Django REST Framework | DSA | AI-ML | Frontend

03-08-2024 : Day 10⌚ #The_Celebrity_Problem Problem statement : A celebrity is a person who is known to all but does not know anyone at a party. A party is being organized by some people.  A square matrix mat is used to represent people at the party such that if an element of row i and column j is set to 1 it means ith person knows jth person. You need to return the index of the celebrity in the party, if the celebrity does not exist, return -1. Approach : Two Pointer method😍 #geekstreak2024 #gfg #dsa

  • No alternative text description for this image

To view or add a comment, sign in

Explore topics