Best Meeting Point | Leetcode 296 Solution in Hindi

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
    NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. 1. A group of two or more people wants to meet and minimize the total travel distance.
    2. You are given a 2D grid of values 0 or 1, where each 1 marks the home of someone in the group.
    3. Return min distance where distance is calculated using 'Manhattan Distance', where distance(p1, p2) = |p2.x - p1.x| + |p2.y - p1.y|.
    Topic: #Maths, #Median, #Arrays
    Used #DataStructure: #Arrays, #ArrayList
    #TimeComplexity: O(n*m)
    #SpaceComplexity: O(p), where 'p' is number of peoples
    ---------------------------------------------------------------
    For detailed information and other exercises, VISIT: www.pepcoding.com
    Have a look at our result: www.pepcoding....
    Follow us on our FB page: / pepcoding​
    Follow us on Instagram: / pepcoding​
    Follow us on LinkedIn: / pepcoding-education
    ----------------------------------------------------------------
    #leetcode296, #296leetcode, #lintcode912, #912lintcode, #bestMeetingPoint, #Arrays&String #pepcodingBestMeetingPoint
    For a better experience and more exercises, VISIT: www.pepcoding.....
    Have a look at our result: www.pepcoding....
    Follow us on our CZcams page: / pepcoding
    Follow us on our FB page: / pepcoding
    Follow us on Instagram: / pepcoding
    Follow us on LinkedIn: / pepcoding-education
    Follow us on Pinterest: / _created
    Follow us on Twitter: home
    .
    .
    .
    Happy Programming !!! Pep it up 😍🤩
    .
    .
    .
    #pepcoding #code #coder #codinglife #programming #coding #java #freeresources #datastrucutres #pepcode #competitive #competitiveprogramming #softwareengineer #engineering #engineer

Komentáře • 22