Lakshya Thakur's Blog

Lakshya Thakur's Blog

Series

Random DS/Algo

The purpose of this series is to just act as random collection of DS/Algo problems I solved so that in future I might revisit what I explained to people on the Internet 🤷‍♂️.

Articles in this series

ZigZag ⚡traverse that binary tree 🌲

Sep 26, 20216 min read 144 views

Today we are going to solve two DS problems that are actually very similar. They are respectively :- level order traversal in binary tree zigzag order traversal in binary tree And I like to solve them in a specific way which comes natural to me. ...

ZigZag ⚡traverse that binary tree 🌲
Implementing String repeat() function in JS
Determine if a BST is valid or not