Invert a Binary Tree - Leet Code 226 - TypeScript

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • In this video we apply both DFS and BFS to invert a binary tree.
    --------------------------------------------------
    Recommended Udemy courses
    --------------------------------------------------
    Understanding TypeScript: tinyurl.com/9wz6fp7k
    NodeJS - The Complete Guide: tinyurl.com/3z4ehtpm
    React - The Complete Guide: tinyurl.com/2t6v5yeu
    Angular - The Complete Guide: tinyurl.com/4h5rmpsj
    DSA TS Playlist: • Data Structures and Al...
    00:00-01:33 - Understanding the problem
    01:34-06:07 - DFS approach
    06:08 - BFS approach

Komentáře • 2

  • @TannerBarcelos
    @TannerBarcelos Před 7 měsíci +1

    Breadth first search is awesome, and very easy to understand. I like the final DFS you did also. I agree, this problem is very good for practice.

    • @JonPeppinck
      @JonPeppinck  Před 7 měsíci

      Thank you! Both are very important techniques which is why I wanted to cover both in this series. Good luck with your DSA practice! Cheers!