1650. Lowest Common Ancestor of a Binary Tree III

Problem description:

Given two nodes of a binary tree p and q, return their lowest common ancestor (LCA).

Readmore

827. Making A Large Island

Problem description:

You are given an n x n binary matrix grid. You are allowed to change at most one 0 to be 1.

Readmore

1762. Buildings With an Ocean View

Problem description:

There are n buildings in a line. You are given an integer array heights of size n that represents the heights of the buildings in the line.

Readmore

1263. Minimum Moves to Move a Box to Their Target Location

Problem description:

Storekeeper is a game in which the player pushes boxes around in a warehouse trying to get them to target locations.

Readmore

360. Sort Transformed Array

Problem description:

Given a sorted integer array nums and three integers a, b and c, apply a quadratic function of the form f(x) = ax2 + bx + c to each element nums[i] in the array, and return the array in a sorted order.

Readmore

68. Text Justification

Problem description:

Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justified.

Readmore

611. Valid Triangle Number

Problem description:

Given an integer array nums, return the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle.

Readmore

254. Factor Combinations

Problem description:

Numbers can be regarded as the product of their factors.

Readmore

366. Find Leaves of Binary Tree

Problem description:

Given the root of a binary tree, collect a tree’s nodes as if you were doing this:

Readmore

243. Shortest Word Distance

Problem description:

Given an array of strings wordsDict and two different strings that already exist in the array word1 and word2, return the shortest distance between these two words in the list.

Readmore