西门摸鱼

Author: feelshu

LeetCode 178 分数排名

2023年5月6日2023年5月6日 feelshu Leave a comment 算法

表: Scores 编写 SQL 查询对分数进行排序。排名按以下规则计算: 按 score 降序返回结果表。 […]

Continue reading


LeetCode 177 第N高的薪水

2023年5月5日2023年5月5日 feelshu Leave a comment 算法

表: Employee 编写一个SQL查询来报告 Employee 表中第 n 高的工资。如果没有第 n 个最 […]

Continue reading


LeetCode 176 第二高的薪水

2023年5月5日 feelshu Leave a comment 算法

Employee 表: 编写一个 SQL 查询,获取并返回 Employee 表中第二高的薪水 。如果不存在第 […]

Continue reading


LeetCode 175 组合两个表

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

表: Person 表: Address 编写一个SQL查询来报告 Person 表中每个人的姓、名、城市和州 […]

Continue reading


LeetCode 174 地下城游戏

2023年5月3日 feelshu Leave a comment 算法

恶魔们抓住了公主并将她关在了地下城 dungeon 的 右下角 。地下城是由 m x n 个房间组成的二维网格 […]

Continue reading


LeetCode 173 二叉搜索树迭代器

2023年5月3日 feelshu Leave a comment 算法

实现一个二叉搜索树迭代器类BSTIterator ,表示一个按中序遍历二叉搜索树(BST)的迭代器:BSTIt […]

Continue reading


LeetCode 172 阶乘后的零

2023年5月1日2023年5月1日 feelshu Leave a comment 算法

给定一个整数 n ,返回 n! 结果中尾随零的数量。 提示 n! = n * (n – 1) * […]

Continue reading


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


Posts navigation

Older posts
Newer 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