摘要:
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path.
阅读全文
posted @ 2025-04-08 21:15
ZhangZhihuiAAA
阅读(11)
推荐(0)
摘要:
>>> m, n = 3, 4 >>> grid = [[float('inf')] * n] * m >>> grid [[inf, inf, inf, inf], [inf, inf, inf, inf], [inf, inf, inf, inf]] >>> for j in range(n):
阅读全文
posted @ 2025-04-08 21:09
ZhangZhihuiAAA
阅读(5)
推荐(0)
摘要:
Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row below. More forma
阅读全文
posted @ 2025-04-08 20:35
ZhangZhihuiAAA
阅读(9)
推荐(0)
摘要:
Given an integer array nums, return the length of the longest strictly increasing subsequence. Example 1: Input: nums = [10,9,2,5,3,7,101,18] Output:
阅读全文
posted @ 2025-04-08 19:38
ZhangZhihuiAAA
阅读(3)
推荐(0)
摘要:
You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return
阅读全文
posted @ 2025-04-08 18:51
ZhangZhihuiAAA
阅读(5)
推荐(0)