133. Clone Graph

作者:sryan 更新时间:2021-03-24 18:35 分类:数据结构与算法

Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph...

点击数:467 回复数:0

97. Interleaving String

作者:sryan 更新时间:2021-03-24 14:03 分类:数据结构与算法

Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interlea...

点击数:733 回复数:0

1201. Ugly Number III

作者:sryan 更新时间:2021-03-23 18:53 分类:数据结构与算法

Given four integers n, a, b, and c, return the nth ugly number. Ugly numbers are positive integers t...

点击数:495 回复数:0

313. Super Ugly Number

作者:sryan 更新时间:2021-03-19 17:38 分类:数据结构与算法

Given an integer n and an array of integers primes, return the nth super ugly number. Super ugly num...

点击数:454 回复数:0

264. Ugly Number II

作者:sryan 更新时间:2021-03-19 17:21 分类:数据结构与算法

Given an integer n, return the nth ugly number. Ugly number is a positive number whose prime factors...

点击数:430 回复数:0

240. Search a 2D Matrix II

作者:sryan 更新时间:2021-03-19 16:07 分类:数据结构与算法

Write an efficient algorithm that searches for a target value in an m x n integer matrix. The matrix...

点击数:419 回复数:0

220. Contains Duplicate III

作者:sryan 更新时间:2021-03-19 14:41 分类:数据结构与算法

Given an integer array nums and two integers k and t, return true if there are two distinct indices ...

点击数:425 回复数:0

210. Course Schedule II

作者:sryan 更新时间:2021-03-18 17:30 分类:数据结构与算法

There are a total of n courses you have to take labelled from 0 to n - 1. Some courses may have prer...

点击数:495 回复数:0

207. Course Schedule

作者:sryan 更新时间:2021-03-18 15:47 分类:数据结构与算法

There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are ...

点击数:445 回复数:0

146. LRU Cache

作者:sryan 更新时间:2021-03-17 18:28 分类:数据结构与算法

Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement...

点击数:575 回复数:0