Algorithm

Minimum Distance Between BST Nodes

Problem link:  Minimum Distance Between BST Nodes - LeetCode Given the  root  of a Binary Search Tr…

Sum of Left Leaves

Problem link:  Sum of Left Leaves - LeetCode Given the  root  of a binary tree, return  the sum of …

Binary Tree Paths

Problem link:  Binary Tree Paths - LeetCode Given the  root  of a binary tree, return  all root-to-…

Binary Tree Preorder Traversal

Problem link:  Binary Tree Preorder Traversal - LeetCode Given the  root  of a binary tree, return …

Number of Provinces

Problem link:  Number of Provinces - LeetCode There are  n  cities. Some of them are connected, whi…

Max Area of Island

Problem link:  Max Area of Island - LeetCode You are given an  m x n  binary matrix  grid . An isla…

Number of Closed Islands

Problem link:  Number of Closed Islands - LeetCode Given a 2D  grid  consists of  0s  (land) and  1…

Rotting Oranges

Problem link:   Rotting Oranges - LeetCode You are given an  m x n   grid  where each cell can have…

Combination Sum

Problem link:  https://leetcode.com/problems/combination-sum/ Given an array of  distinct  integer…

Combinations

Problem link:  https://leetcode.com/problems/combinations/ Given two integers  n  and  k , return …

Reduce Array Size to The Half

Problem link:  https://leetcode.com/problems/reduce-array-size-to-the-half/ You are given an intege…

Merge k Sorted Lists

Problem link:  https://leetcode.com/problems/merge-k-sorted-lists/ You are given an array of  k  li…

Load More
No results found