Leetcode

Algorithm

[Leetcode] 01 Matrix

find the distance of the nearest 0 for each cell.

---
Algorithm

[Leetcode] 2 Keys Keyboard

You have to get exactly n 'A' on the notepad by performing the minimum number of steps permitted.

---
Algorithm

[Leetcode] Binary Tree Maximum Path Sum

Given a non-empty binary tree, find the maximum path sum.

---
Algorithm

[Leetcode] Construct Binary Tree from Preorder and Inorder Traversal

Given preorder and inorder traversal of a tree, construct the binary tree.