All Posts

Next Greater Element I Problem

LeetCode 496. The next greater element of some element x...

N-Ary Tree Preorder Traversal Problem

LeetCode 589. Given the root of an n-ary tree, return...

N-Ary Tree Postorder Traversal Problem

LeetCode 590. Given the root of an n-ary tree, return...

N-Ary Tree Level Order Traversal Problem

LeetCode 429. Given an n-ary tree, return the level order...

Most Frequent Subtree Sum Problem

LeetCode 508. Given the root of a binary tree, return...

Minimum Time Difference Problem

LeetCode 539. Given a list of 24-hour clock time points...

Minimum Number Of Arrows To Burst Balloons Problem

LeetCode 452. There are some spherical balloons taped onto a...


Minimum Genetic Mutation Problem

LeetCode 433. A gene string can be represented by an...

Minimum Moves To Equal Array Elements Problem

LeetCode 453. Given an integer array nums of size n,...

Minimum Moves To Equal Array Elements II Problem

LeetCode 462. Given an integer array nums of size n,...

Minimum Index Sum Of Two Lists Problem

LeetCode 599. Suppose Andy and Doris want to choose a...

Minimum Absolute Difference In BST Problem

LeetCode 530. Given the root of a Binary Search Tree...

Minesweeper Problem

LeetCode 529. Let’s play the minesweeper game!

Maximum Depth Of N-Ary Tree Problem

LeetCode 559. Given a n-ary tree, find its maximum depth....

Max Consecutive Ones Problem

LeetCode 485. Given a binary array nums, return the maximum...


Matchsticks To Square Problem

LeetCode 473. You are given an integer array matchsticks where...