4. Median of Two Sorted Arrays

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

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two s...

点击数:65 回复数:0

509. Fibonacci Number

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

The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such th...

点击数:26 回复数:0

842. Split Array into Fibonacci Sequence

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

Given a string S of digits, such as S = "123456579", we can split it into a Fibonacci-like...

点击数:44 回复数:0

306. Additive Number

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

Additive number is a string whose digits can form additive sequence. A valid additive sequence shoul...

点击数:56 回复数:0

73. Set Matrix Zeroes

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

Given an m x n matrix. If an element is 0, set its entire row and column to 0. Do it in-place. Follo...

点击数:35 回复数:0

289. Game of Life

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

According to Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular a...

点击数:22 回复数:0

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...

点击数:24 回复数: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...

点击数:18 回复数: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...

点击数:25 回复数: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...

点击数:27 回复数:0