Algorithms

### [LeetCode 1629] Slowest Key

A newly designed keypad was tested, where a tester pressed a sequence of n keys, ...
Algorithms

### [LeetCode 1104] Path in ZigZag Labelled Binary Tree

In an infinite binary tree where every node has two children, the nodes ...
Algorithms

### [LeetCode 1008] Construct Binary Tree From Preorder Traversal

Given an array of integers preorder, which represents the preorder traversal of a BST (i.e., binary ...
Algorithms

### [LeetCode 1766] Tree of Coprimes

There is a tree (i.e., a connected, undirected graph that has no cycles) consisting ...
Algorithms

### [LeetCode 1130] Minimum Cost Tree From Leaf Values

Given an array arr of positive integers, consider all binary trees such that: Each node ...
Algorithms

### [LeetCode 1339] Maximum Product of a Splitted Binary Tree

Given a binary tree root. Split the binary tree into two subtrees by removing 1 edge ...
Algorithms

### [LeetCode 1145] Binary Tree Coloring Game

Two players play a turn based game on a binary tree.  We are ...
Algorithms

### [LeetCode 987] Vertical Order Traversal of a Binary Tree

https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/ Given the root of a binary tree, calculate the vertical order traversal of the binary tree. ...
Algorithms

### [LeetCode 971] Flip Binary Tree to Match Preorder Traversal

https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/ You are given the root of a binary tree with n nodes, where each node is ...
Algorithms

### [LeetCode 968] Binary Tree Cameras

https://leetcode.com/problems/binary-tree-cameras/ Given a binary tree, we install cameras on the nodes of the ...