西门摸鱼

Month: 4 月 2023

LeetCode 171 Excel 表列序号

2023年4月30日 feelshu Leave a comment 算法

给你一个字符串 columnTitle ,表示 Excel 表格中的列名称。返回 该列名称对应的列序号 。 例 […]

Continue reading


LeetCode 169 多数元素

2023年4月29日 feelshu Leave a comment 算法

给定一个大小为 n 的数组 nums ,返回其中的多数元素。多数元素是指在数组中出现次数 大于 ⌊ n/2 ⌋ […]

Continue reading


LeetCode 168 Excel表列名称

2023年4月28日2023年4月28日 feelshu Leave a comment 算法

给你一个整数 columnNumber ,返回它在 Excel 表中相对应的列名称。 例如: 示例 1: 示例 […]

Continue reading


LeetCode 167 两数之和 II – 输入有序数组

2023年4月27日 feelshu Leave a comment 算法

给你一个下标从 1 开始的整数数组 numbers ,该数组已按 非递减顺序排列 ,请你从数组中找出满足相加之 […]

Continue reading


LeetCode 166 分数到小数

2023年4月27日2023年4月27日 feelshu Leave a comment 算法

给定两个整数,分别表示分数的分子 numerator 和分母 denominator,以 字符串形式返回小数 […]

Continue reading


LeetCode 165 比较版本号

2023年4月24日2023年4月24日 feelshu Leave a comment 算法

给你两个版本号 version1 和 version2 ,请你比较它们。 版本号由一个或多个修订号组成,各修订 […]

Continue reading


LeetCode 164 最大间距

2023年4月23日2023年4月23日 feelshu Leave a comment 算法

给定一个无序的数组 nums,返回 数组在排序之后,相邻元素之间最大的差值 。如果数组元素个数小于 2,则返回 […]

Continue reading


LeetCode 162 寻找峰值

2023年4月22日 feelshu Leave a comment 算法

峰值元素是指其值严格大于左右相邻值的元素。 给你一个整数数组 nums,找到峰值元素并返回其索引。数组可能包含 […]

Continue reading


LeetCode 160 相交链表

2023年4月21日 feelshu Leave a comment 算法

给你两个单链表的头节点 headA 和 headB ,请你找出并返回两个单链表相交的起始节点。如果两个链表不存 […]

Continue reading


LeetCode 155 最小栈

2023年4月21日2023年4月21日 feelshu Leave a comment 算法

设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 实现 MinStack […]

Continue reading


Posts navigation

Older posts

近期文章

  • LeetCode 199 二叉树的右视图
  • LeetCode 198 打家劫舍
  • LeetCode 197 上升的温度
  • LeetCode 196 删除重复的电子邮箱
  • LeetCode 195 第十行

近期评论

  1. 111 发表在 LeetCode 36 有效的数独
  2. 一位WordPress评论者 发表在 世界,您好!

归档

  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 8 月
  • 2022 年 4 月

分类

  • 未分类
  • 算法
dazzling Theme by Colorlib Powered by WordPress
陕ICP备2021008752号-1