mybloger

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

07 2025 档案

摘要:Be committed You are always one commitment away from changing the whole trajectory of your life. Being commited means you do what you promised to do n 阅读全文
posted @ 2025-07-28 21:38 万能包哥 阅读(10) 评论(0) 推荐(0)

摘要:63、在排序数组中查找元素的第一个位置和最后一个位置 给你一个按照非递减顺序排列的整数数组 nums,和一个目标值 target。请你找出给定目标值在数组中的开始位置和结束位置。 如果数组中不存在目标值 target,返回 [-1, -1]。 你必须设计并实现时间复杂度为 O(log n) 的算法解 阅读全文
posted @ 2025-07-27 20:41 万能包哥 阅读(8) 评论(0) 推荐(0)

摘要:find your passion Write down the list of things you hate: the toxic enviroment,the problems you never want to deal with,the irrelevant things that bor 阅读全文
posted @ 2025-07-27 18:59 万能包哥 阅读(7) 评论(0) 推荐(0)

摘要:Say this as today’s affirmations. Try this for today's affirmation. I love myself unconditionally. I'm grateful for a new day and,a new opportunity. I 阅读全文
posted @ 2025-07-23 18:42 万能包哥 阅读(6) 评论(0) 推荐(0)

摘要:Don't blame the good guys. People don't disrespect you because you are a nice person. They don't take you for granted because you love sharing and giv 阅读全文
posted @ 2025-07-21 20:29 万能包哥 阅读(12) 评论(0) 推荐(0)

摘要:61、搜索插入的位置 给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。 请必须使用时间复杂度为 O(log n) 的算法。 class Solution { public int searchInsert(int[] nums, 阅读全文
posted @ 2025-07-21 20:00 万能包哥 阅读(8) 评论(0) 推荐(0)

摘要:59、分割回文串 给你一个字符串 s,请你将 s 分割成一些 子串,使每个子串都是 回文串 。返回 s 所有可能的分割方案。 示例 1: 输入:s = "aab" 输出:[["a","a","b"],["aa","b"]] 示例 2: 输入:s = "a" 输出:[["a"]] class Solu 阅读全文
posted @ 2025-07-20 22:28 万能包哥 阅读(9) 评论(0) 推荐(0)

摘要:You are a precious human There's no one like you. No one has the perfect combination if your history,personality,and persective. That's stremendously 阅读全文
posted @ 2025-07-20 10:23 万能包哥 阅读(8) 评论(0) 推荐(0)

摘要:Do what scares you Do you want to know how to overcome your fears?Just do it scared.What is the thing that you are most afraid to say or do? I challen 阅读全文
posted @ 2025-07-17 22:12 万能包哥 阅读(23) 评论(0) 推荐(0)

摘要:Let's reframe fear. When was the last time you stoped yourself from doing something because you were afraid? Let's be honest. We all have the fear of 阅读全文
posted @ 2025-07-16 21:54 万能包哥 阅读(14) 评论(0) 推荐(0)

摘要:You are brave. Your life was not easy. In fact,no one gets to live an easy life,no matter how flawless it seems from outside. You are not an exception 阅读全文
posted @ 2025-07-15 19:36 万能包哥 阅读(27) 评论(0) 推荐(0)

摘要:57、组合总和 给你一个 无重复元素 的整数数组 candidates 和一个目标整数 target ,找出 candidates 中可以使数字和为目标数 target 的 所有 不同组合 ,并以列表形式返回。你可以按 任意顺序 返回这些组合。 candidates 中的 同一个 数字可以 无限制重 阅读全文
posted @ 2025-07-11 21:15 万能包哥 阅读(10) 评论(0) 推荐(0)

摘要:55、子集 给你一个整数数组 nums ,数组中的元素 互不相同 。返回该数组所有可能的子集(幂集)。 解集 不能 包含重复的子集。你可以按 任意顺序 返回解集。 示例 1: 输入:nums = [1,2,3] 输出:[[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3] 阅读全文
posted @ 2025-07-10 21:47 万能包哥 阅读(7) 评论(0) 推荐(0)

摘要:53、实现前缀树 Trie(发音类似 "try")或者说 前缀树 是一种树形数据结构,用于高效地存储和检索字符串数据集中的键。这一数据结构有相当多的应用情景,例如自动补全和拼写检查。 请你实现 Trie 类: Trie() 初始化前缀树对象。 void insert(String word) 向前缀 阅读全文
posted @ 2025-07-09 22:16 万能包哥 阅读(6) 评论(0) 推荐(0)

摘要:51、腐烂的橘子 在给定的 m x n 网格 grid 中,每个单元格可以有以下三个值之一: 值 0 代表空单元格; 值 1 代表新鲜橘子; 值 2 代表腐烂的橘子。 每分钟,腐烂的橘子 周围 4 个方向上相邻 的新鲜橘子都会腐烂。 返回 直到单元格中没有新鲜橘子为止所必须经过的最小分钟数。如果不可 阅读全文
posted @ 2025-07-04 20:42 万能包哥 阅读(7) 评论(0) 推荐(0)

摘要:49、二叉树中的最大路径和 二叉树中的 路径 被定义为一条节点序列,序列中每对相邻节点之间都存在一条边。同一个节点在一条路径序列中 至多出现一次 。该路径 至少包含一个 节点,且不一定经过根节点。 路径和 是路径中各节点值的总和。 给你一个二叉树的根节点 root ,返回其 最大路径和 。 示例 1 阅读全文
posted @ 2025-07-02 20:43 万能包哥 阅读(7) 评论(0) 推荐(0)