# Definition for a binary tree node.# class TreeNode:# def…
This is a serie of my note to summarize some of the algorithm patterns and strategies that are often used to solve coding problems, as I practice on leetcode.