Diameter of Binary Tree | Tree Data Structure playlist C++ | Hello World | Hindi

Sdílet
Vložit
  • čas přidán 30. 07. 2021
  • This is the video under the series of DATA STRUCTURE & ALGORITHM in a TREE Playlist. We are going to understand the Diameter of the Binary Tree. We understand How to use the Height of the Binary for Finding the Diameter of the Binary Tree.
    Join My Telegram channel for more Updates: telegram.me/helloworldbyprince
    ► 543. Diameter of Binary Tree
    Given the root of a binary tree, return the length of the diameter of the tree.
    The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root.
    The length of a path between two nodes is represented by the number of edges between them.
    Input: root = [1,2,3,4,5]
    Output: 3
    Explanation: 3 is the length of the path [4,2,1,3] or [5,2,1,3]
    We also Provide courses on Competitive Programming and Data structure and Algorithms. Please see our Full Playlist on our Channel.
    ----------------------------------------------------------------------------------------:
    Diameter of Binary Tree: leetcode.com/problems/diamete...
    code in This Video: github.com/Prince-1501/Hello_...
    ----------------------------------------------------------------------------------------
    ► Unacademy
    Use my code HELLOWORLD to get a 10% discount on this subscription
    Course on Interesting Weekend Projects: unacademy.com/course/course-o...
    ----------------------------------------------------------------------------------------
    *Follow me *
    LinkedIn► / iamprince
    Facebook► / helloworldofficials
    Instagram► / helloworldbyprince
    Twitter► / prince_king_
    Telegram► telegram.me/helloworldbyprince
    ----------------------------------------------------------------------------------------
    ►Our Playlists on:-
    ► Tree: • Tree Data Structure & ...
    ► Hashing: • Hashing Data Structure...
    ► Matrix: • Matrix (Multidimension...
    ► STL: • Standard Template Libr...
    ► Leetcode: • LeetCode Solutions And...
    ►Competitive Programming: • Full course in Competi...
    ►C++ Full Course : • C++ full Course in HINDI
    ►Algorithms: • L-01 || Prefix Sum Arr...
    ►Data Structure: • Data Structures with C...
    ------------------------------------------------------------------------
    🌟 Please leave a LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟
    ✨ Tags ✨
    Diameter of Binary Tree
    The tree Data structure in Hindi
    Right view of Binary Tree
    Use of Tree Data structure in real Life
    question asked in Google
    off-campus placement
    how to learn to code for beginners
    Practice Tree data structure
    tree in data structure
    Best Telegram channel for Off-campus Placement drive
    Tree in a data structure in Hindi
    Tree Full playlist for Beginners
    #Tree #Leetcode #programming

Komentáře • 41