1779. Find Nearest Point That Has the Same X or Y Coordinate

Problem description:

You are given two integers, x and y, which represent your current location on a Cartesian grid: (x, y). You are also given an array points where each points[i] = [ai, bi] represents that a point exists at (ai, bi). A point is valid if it shares the same x-coordinate or the same y-coordinate as your location.

Readmore

12. Integer to Roman

Problem description:

Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.

Readmore

156. Binary Tree Upside Down

Problem description:

Given the root of a binary tree, turn the tree upside down and return the new root.

Readmore

101. Symmetric Tree

Problem description:

Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center).

Readmore

715. Range Module

Problem description:

A Range Module is a module that tracks ranges of numbers. Design a data structure to track the ranges represented as half-open intervals and query about them.

Readmore

730. Count Different Palindromic Subsequences

Problem description:

Given a string s, return the number of different non-empty palindromic subsequences in s. Since the answer may be very large, return it modulo 109 + 7.

Readmore

450. Delete Node in a BST

Problem description:

Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of the BST.

Readmore

545. Boundary of Binary Tree

Problem description:

The boundary of a binary tree is the concatenation of the root, the left boundary, the leaves ordered from left-to-right, and the reverse order of the right boundary.

Readmore

460. LFU Cache

Problem description:

Design and implement a data structure for a Least Frequently Used (LFU) cache.

Readmore

373. Find K Pairs with Smallest Sums

Problem description:

You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.

Readmore