西门摸鱼

Month: 5 月 2023

LeetCode 199 二叉树的右视图

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

给定一个二叉树的 根节点 root,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值。 […]

Continue reading


LeetCode 198 打家劫舍

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

你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金,影响你偷窃的唯一制约因素就是相邻的房屋装有相 […]

Continue reading


LeetCode 197 上升的温度

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

表: Weather 编写一个 SQL 查询,来查找与之前(昨天的)日期相比温度更高的所有日期的 id 。 返 […]

Continue reading


LeetCode 196 删除重复的电子邮箱

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

表: Person 编写一个 SQL 删除语句来 删除 所有重复的电子邮件,只保留一个id最小的唯一电子邮件。 […]

Continue reading


LeetCode 195 第十行

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

给定一个文本文件 file.txt,请只打印这个文件中的第十行。 示例: 假设 file.txt 有如下内容: […]

Continue reading


LeetCode 194 转置文件

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

给定一个文件 file.txt,转置它的内容。 你可以假设每行列数相同,并且每个字段由 ‘ &#8 […]

Continue reading


LeetCode 193 有效电话号码

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

给定一个包含电话号码列表(一行一个电话号码)的文本文件 file.txt,写一个单行 bash 脚本输出所有有 […]

Continue reading


LeetCode 192 统计词频

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

写一个 bash 脚本以统计一个文本文件 words.txt 中每个单词出现的频率。 为了简单起见,你可以假设 […]

Continue reading


LeetCode 191 位1的个数

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

编写一个函数,输入是一个无符号整数(以二进制串的形式),返回其二进制表达式中数字位数为 ‘1&#8 […]

Continue reading


LeetCode 190 颠倒二进制位

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

颠倒给定的 32 位无符号整数的二进制位。 提示: 示例 1: 示例 2: 提示: 进阶: 如果多次调用这个函 […]

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