Creating a Binary Tree in CSS

Опубликовано: 25 Январь 2023
на канале: Alvaro Montoro
2,286
61

How to code a "functional" binary tree with HTML and CSS, and how to display it in inorder, postorder, and preorder with a simple class change. Plus, the answer to a common interview question: how to invert the binary tree. All in CSS!

*Don't take this video seriously. It is not... or maybe it is... still, don't take it too seriously. Please. There are more important things in life than programming.*

Seriously, this video is a joke. But in it, you may learn about:

Grid
Flexbox
Order
Positioning
Pseudo-elements
Transforms
And yes, a little bit, but not much, about binary trees.

Source code and live demo: https://codepen.io/alvaromontoro/full...

Learn more about binary trees: https://en.wikipedia.org/wiki/Binary_...