玩命加载中 . . .

学习之旅
147-链表插入排序 147-链表插入排序
LeetCode 147. Insertion Sort ListLeetCode-147 Given the head of a singly linked list, sort the list using insertion sort
2021-09-25
474-一和零 474-一和零
LeetCode 474. 一和零给你一个二进制字符串数组 strs 和两个整数 m 和 n 。 请你找出并返回 strs 的最大子集的长度,该子集中 最多 有 m 个 0 和 n 个 1 。 如果 x 的所有元素也是 y 的元素,集合 x
2021-09-25
1046/1049-最后一块石头的重量 1046/1049-最后一块石头的重量
LeetCode 1046. 最后一块石头的重量LeetCode-1046 有一堆石头,每块石头的重量都是正整数。 每一回合,从中选出两块 最重的 石头,然后将它们一起粉碎。假设石头的重量分别为 x 和 y,且 x <= y。那么粉碎
2021-09-25
416-分割等和子集 416-分割等和子集
LeetCode 416. Partition Equal Subset SumLeetCode-416 Given a non-empty array nums containing only positive integers, fin
2021-09-25
223-矩形面积 223-矩形面积
LeetCode 223. Rectangle AreaLeetCode-223 Given the coordinates of two rectilinear rectangles in a 2D plane, return the t
2021-09-25
148-排序链表 148-排序链表
LeetCode 148. Sort ListLeetCode-148 Given the head of a linked list, return the list after sorting it in ascending order
2021-09-24
129-根到叶子节点的和 129-根到叶子节点的和
LeetCode 129. Sum Root to Leaf NumbersLeetCode-129 You are given the root of a binary tree containing digits from 0 to 9
2021-09-24
84-柱形图中最大矩形 84-柱形图中最大矩形
LeetCode 84. Largest Rectangle in HistogramLeetCode-84 Given an array of integers heights representing the histogram’s b
2021-09-24
13-罗马数字转整数 13-罗马数字转整数
LeetCode 13. Roman to IntegerLeetCode-13 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and
2021-09-23
23-合并k个升序链表 23-合并k个升序链表
LeetCode 23. Merge k Sorted ListsLeetCode-23 You are given an array of k linked-lists lists, each linked-list is sorted
2021-09-23
背包总结 背包总结
分组背包有 N 组物品和一个容量是 V 的背包。 每组物品有若干个,同一组内的物品最多只能选一个。每件物品的体积是 vij,价值是 wij,其中 i 是组号,j 是组内编号。 求解将哪些物品装入背包,可使物品总体积不超过背包容量,且总价值最
2021-09-23
01背包/完全背包 01背包/完全背包
01背包动态规划五部曲1、确定dp数组以及下标的含义 使用二维数组,dp[i][j]表示对于下标为0~i的物品,背包重量为j时的最大价值 背包最大重量为4 重量 价值 物品0 1 15 物品1 3 20 物品2 4
2021-09-23
15 / 24