西门摸鱼

Month: 8 月 2022

LeetCode 16 最接近的三数之和

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个长度为 n 的整数数组 nums 和 一个目标值 target。请你从 nums 中选出三个整 […]

Continue reading


LeetCode 15 三数之和

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a […]

Continue reading


LeetCode 14 最长公共前缀

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 “&#8 […]

Continue reading


LeetCode 13 罗马数字转整数

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 罗马数字包含以下七种字符:I, V, X, L,C,D 和 M。 例如, 罗马数字 2 写作 II , […]

Continue reading


LeetCode 12 整数转罗马数字

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 罗马数字包含以下七种字符:I, V, X, L,C,D 和 M。 例如, 罗马数字 2 写做 II , […]

Continue reading


LeetCode 11 盛最多水的容器

2022年8月26日 feelshu Leave a comment 算法

题目: 给定一个长度为 n 的整数数组 height 。有 n 条垂线,第 i 条线的两个端点是 (i, 0) […]

Continue reading


LeetCode 10 正则表达式匹配

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 ‘.’ 和 &#8 […]

Continue reading


LeetCode 9 回文数

2022年8月26日2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个整数 x ,如果 x 是一个回文整数,返回 true ;否则,返回 false 。 回文数是指 […]

Continue reading


LeetCode 8 字符串转换整数 (atoi)

2022年8月26日 feelshu Leave a comment 算法

题目: 请你来实现一个 myAtoi(string s) 函数,使其能将字符串转换成一个 32 位有符号整数( […]

Continue reading


LeetCode 7 整数反转

2022年8月26日 feelshu Leave a comment 算法

题目: 给你一个 32 位的有符号整数 x ,返回将 x 中的数字部分反转后的结果。 如果反转后整数超过 32 […]

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