随笔分类 -  LeetCode

重构的leetcode题解,会把之前的按照格式给重新放入,主要语言是c++,如果之前敲了java的也会加入。
摘要:LeetCode 1189. Maximum Number of Balloons (“气球” 的最大数量) 题目 链接 https://leetcode-cn.com/problems/maximum-number-of-balloons/ 问题描述 给你一个字符串 text,你需要使用 text 阅读全文
posted @ 2022-02-14 23:42 cheng102e 阅读(35) 评论(0) 推荐(0) 编辑
摘要:LeetCode 645. Set Mismatch(错误的集合) 题目 链接 https://leetcode-cn.com/problems/set-mismatch 问题描述 集合 s 包含从 1 到 n 的整数。不幸的是,因为数据错误,导致集合里面某一个数字复制了成了集合里面的另外一个数字的 阅读全文
posted @ 2021-07-04 10:20 cheng102e 阅读(92) 评论(0) 推荐(0) 编辑
摘要:LeetCode 401. Binary Watch(二进制手表) 题目 链接 https://leetcode-cn.com/problems/binary-watch 问题描述 二进制手表顶部有 4 个 LED 代表 小时(0-11),底部的 6 个 LED 代表 分钟(0-59)。每个 LED 阅读全文
posted @ 2021-06-21 08:44 cheng102e 阅读(128) 评论(0) 推荐(0) 编辑
摘要:LeetCode 852. Peak Index in a Mountain Array(山脉数组的峰顶索引) 题目 链接 https://leetcode-cn.com/problems/peak-index-in-a-mountain-array 问题描述 符合下列属性的数组 arr 称为 山脉 阅读全文
posted @ 2021-06-15 15:42 cheng102e 阅读(64) 评论(0) 推荐(0) 编辑
摘要:LeetCode 518. Coin Change 2(零钱兑换 II) 题目 链接 https://leetcode-cn.com/problems/coin-change-2 问题描述 给定不同面额的硬币和一个总金额。写出函数来计算可以凑成总金额的硬币组合数。假设每一种面额的硬币有无限个。 示例 阅读全文
posted @ 2021-06-10 14:59 cheng102e 阅读(115) 评论(0) 推荐(0) 编辑
摘要:LeetCode 860. Lemonade Change(柠檬水找零) 题目 链接 https://leetcode-cn.com/problems/lemonade-change 问题描述 在柠檬水摊上,每一杯柠檬水的售价为 5 美元。 顾客排队购买你的产品,(按账单 bills 支付的顺序)一 阅读全文
posted @ 2021-06-10 11:29 cheng102e 阅读(98) 评论(0) 推荐(0) 编辑
摘要:LeetCode 984. String Without AAA or BBB(不含 AAA 或 BBB 的字符串) 题目 链接 https://leetcode-cn.com/problems/string-without-aaa-or-bbb 问题描述 给定两个整数 A 和 B,返回任意字符串 阅读全文
posted @ 2021-06-09 10:56 cheng102e 阅读(84) 评论(0) 推荐(0) 编辑
摘要:LeetCode 2. Add Two Numbers(两数相加) 题目 链接 https://leetcode-cn.com/problems/add-two-numbers 问题描述 给你两个 非空 的链表,表示两个非负的整数。它们每位数字都是按照 逆序 的方式存储的,并且每个节点只能存储 一位 阅读全文
posted @ 2021-06-05 20:42 cheng102e 阅读(107) 评论(0) 推荐(0) 编辑
摘要:LeetCode 203.Remove Linked List Elements(移除链表元素) 题目 链接 https://leetcode-cn.com/problems/remove-linked-list-elements 问题描述 给你一个链表的头节点 head 和一个整数 val ,请你 阅读全文
posted @ 2021-06-05 11:15 cheng102e 阅读(76) 评论(0) 推荐(0) 编辑
摘要:LeetCode 83.Remove Duplicates from Sorted List (删除排序链表中的重复元素) 题目 链接 https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list 问题描述 存在一个按升序排列 阅读全文
posted @ 2021-06-04 09:03 cheng102e 阅读(71) 评论(0) 推荐(0) 编辑
摘要:LeetCode 461. Hamming Distance (汉明距离) 题目 链接 https://leetcode-cn.com/problems/hamming-distance 问题描述 两个整数之间的汉明距离指的是这两个数字对应二进制位不同的位置的数目。 给出两个整数 x 和 y,计算它 阅读全文
posted @ 2020-02-11 20:24 cheng102e 阅读(119) 评论(0) 推荐(0) 编辑
摘要:LeetCode 27. Remove Element (移除元素) 题目 链接 https://leetcode-cn.com/problems/remove-element 问题描述 给你一个数组 nums 和一个值 val,你需要 原地 移除所有数值等于 val 的元素,并返回移除后数组的新长 阅读全文
posted @ 2020-02-02 21:17 cheng102e 阅读(106) 评论(0) 推荐(0) 编辑
摘要:LeetCode 26. Remove Duplicates from Sorted Array (删除有序数组中的重复项) 题目 链接 https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/ 问题描述 给你一个有序 阅读全文
posted @ 2020-02-02 20:56 cheng102e 阅读(116) 评论(0) 推荐(0) 编辑
摘要:LeetCode 804.Unique Morse Code Words (唯一摩尔斯密码词) 题目 链接 https://leetcode-cn.com/problems/unique-morse-code-words/ 问题描述 国际摩尔斯密码定义一种标准编码方式,将每个字母对应于一个由一系列点 阅读全文
posted @ 2019-05-18 16:33 cheng102e 阅读(146) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示