LeetCode
文章平均质量分 60
LeetCode
schnappi_0227
这个作者很懒,什么都没留下…
展开
-
leetcode 第 76 题:最小覆盖子串(C++)
滑动窗口原创 2023-03-13 12:01:11 · 280 阅读 · 0 评论 -
一. 数组
简单记录刷力扣遇到的知识点原创 2022-08-30 21:36:19 · 267 阅读 · 0 评论 -
Leetcode刷题记录
跟随代码随想录数组二分查找2021年9月27日 周二704. 二分查找力扣题目链接class Solution {public: int search(vector<int>& nums, int target) { int low = 0, high = nums.size()-1; while(low <= high){ //int mid = low + (high - low) / 2;原创 2021-09-28 21:19:33 · 55 阅读 · 0 评论 -
Leetcode7. 整数反转
给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。示例1:输入: 123输出: 321示例 2:输入: -123输出: -321示例 3:输入: 120输出: 21假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为[−231, 231− 1]。请根据这个假设,如果反转后整数溢出那么就返回 0。来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/reverse-integer...原创 2020-09-16 14:21:16 · 60 阅读 · 0 评论 -
Leetcode9. 回文数
判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。示例 1:输入: 121输出: true示例 2:输入: -121输出: false来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/palindrome-number...原创 2020-06-28 23:01:13 · 71 阅读 · 0 评论