摘要: 问题描述 链接: https://leetcode.com/problems/longest-palindromic-substring/description/ Given a string s, return the longest palindromic substring in s 解释: 阅读全文
posted @ 2024-05-20 22:23 金字塔下的蜗牛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Given an integer array nums, find a subarray .that has the largest product, and return the product. The test cases are generated so that the answ 阅读全文
posted @ 2024-05-19 22:14 金字塔下的蜗牛 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 问题描述 链接:https://leetcode.com/problems/coin-change-ii/ You are given an integer array coins representing coins of different denominations and an intege 阅读全文
posted @ 2024-05-18 20:55 金字塔下的蜗牛 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 题目描述 链接:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/description/ You are given an integer array prices where prices[i] is the pri 阅读全文
posted @ 2024-05-17 20:57 金字塔下的蜗牛 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 背景 win11 笔记本突然就不work了,主板坏了,由于是高配,主板显卡集成在一起,换代价太大 硬盘取出来之后,系统自动使用bitlocker加密了,第一次知道bitlocker硬盘加密。 结果: 自己积累了很久的代码库、复习资料,代码库 大部分都没了。 为什么写博客? 资料远程备份 时间是有限的 阅读全文
posted @ 2024-05-16 21:20 金字塔下的蜗牛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 问题描述 You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Re 阅读全文
posted @ 2024-05-16 21:15 金字塔下的蜗牛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 目录基础练习题具体题目二叉树排序双指针法类型1:一个头指针,一个尾指针,不断缩小搜索空间类型2:快慢指针法链表动态规划二分搜索排序数组排序基于交换的排序冒泡排序快速排序基于插入的排序插入排序基于选择的排序选择排序二路归并排序链表排序搜索二分搜索二叉树的遍历深度优先遍历先序遍历中序遍历后序遍历广度优先 阅读全文
posted @ 2024-05-15 20:09 金字塔下的蜗牛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 问题描述 An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given an integer n, return the nth *ugly number*. 解释: 一个丑数是一 阅读全文
posted @ 2024-05-15 19:46 金字塔下的蜗牛 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 64 - Minimum Path Sum 最小路径和 问题描述 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the s 阅读全文
posted @ 2024-05-14 22:53 金字塔下的蜗牛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You have the following three opera 阅读全文
posted @ 2024-05-13 22:23 金字塔下的蜗牛 阅读(1) 评论(0) 推荐(0) 编辑