Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph...
Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interlea...
Given four integers n, a, b, and c, return the nth ugly number. Ugly numbers are positive integers t...
Given an integer n and an array of integers primes, return the nth super ugly number. Super ugly num...
Given an integer n, return the nth ugly number. Ugly number is a positive number whose prime factors...
Write an efficient algorithm that searches for a target value in an m x n integer matrix. The matrix...
Given an integer array nums and two integers k and t, return true if there are two distinct indices ...
There are a total of n courses you have to take labelled from 0 to n - 1. Some courses may have prer...
There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are ...
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement...