How to reverse a binary tree? (Problem solving #2)
Solving data structure problems on the HackerRank website.
Exploring data structures like linked lists, binary trees and stacks, and utilizing them to solve interesting problems from HackerRank.com.
HackerRank is a good website to practice not only data structures, but many other areas of coding such as algorithms, math, databases, functional programming, artificial intelligence and more. It provides fun challenges with different difficulties (easy, medium, hard) and a good range of programming languages to choose from (C, C++, C#, Java, JavaScript, PHP, Ruby, Python, Perl, Haskell, Clojure, Scala, Swift, Lisp, VB.NET, Rust...).
https://www.hackerrank.com/
I'm not sponsored or in any way affiliated with HackerRank, this is my honest review.
Source code:
#1 Reverse a singly linked list - https://github.com/DoubleDebug/hacker-rank-solutions/blob/main/reverse-a-linked-list.cpp
#2 Reverse a binary tree - https://github.com/DoubleDebug/hacker-rank-solutions/tree/main/Binary%20Tree%20Reversion
#3 Simple text editor - https://github.com/DoubleDebug/hacker-rank-solutions/blob/main/simple-text-editor.cpp
Timestamps:
00:00 - 00:23 Intro
00:23 - 07:17 Challenge #1
07:17 - 12:36 Challenge #2
12:36 - 17:55 Challenge #3
17:55 - 18:16 Outro
#Coding #Programming #DataStructures
_________________________________________________________
Social media:
β Facebook: https://www.facebook.com/YoutubeDoubleD
β Twitter: https://twitter.com/YoutubeDoubleD
β Twitch: http://twitch.tv/NotDoubleD