Valizada's blog

Validate Binary Search Tree

October 26, 2020Leetcode / Algorithms 1 Min Read

Link to leetcode problem definition Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as…

226. Invert Binary Tree - June day 1

June 07, 2020Leetcode / Algorithms 2 Min Read

Inspiration of this problem comes from Max Howel's interview experience with Google described in this tweet. Lets jump to the problem The…

1448, Count Good Nodes in Binary Tree - BFS

May 17, 2020Leetcode / Algorithms 1 Min Read

Nice graph problem from leetcode biweekly contest. As majority of graph problems this one can be solved with Breadth First Search as well…