码迷,mamicode.com
首页 >  
搜索关键字:leetcode happy numbe    ( 36157个结果)
1287. 有序数组中出现次数超过25%的元素『简单』
题目来源于力扣(LeetCode) 一、题目 1287. 有序数组中出现次数超过25%的元素 题目相关标签:数组 提示: 1 <= arr.length <= 10^4 0 <= arr[i] <= 10^5 二、解题思路 2.1 线性扫描 据题意:数组中恰好有一个整数,它的出现次数超过数组元素总数 ...
分类:编程语言   时间:2020-06-21 20:08:15    阅读次数:66
LeetCode(力扣)5月「每日 1 题」
3. Longest Substring Without Repeating Characters ...
分类:其他好文   时间:2020-06-21 20:03:36    阅读次数:43
[LeetCode] 29. Divide Two Integers
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi ...
分类:其他好文   时间:2020-06-21 19:56:30    阅读次数:47
Weekly Contest 194
周赛地址(英):Weekly Contest 194 周赛地址(中):第 194 场周赛 仓库地址:week-Leetcode 1486. XOR Operation in an Array Given an integer n and an integer start. Define an arr ...
分类:其他好文   时间:2020-06-21 19:54:59    阅读次数:61
Leetcode——Queue队列
Queue 队列 性质:先入先出FIFO 在FIFO数据结构中,将首先处理添加到其中的第一个元素。队列是典型的 FIFO 数据结构。 插入(insert)操作也称作入队(enqueue),新元素始终被添加在队列的末尾。 删除(delete)操作也被称为出队(dequeue)。 你只能移除第一个元素。 ...
分类:其他好文   时间:2020-06-21 19:54:07    阅读次数:57
LeetCode(力扣)3月「每日 1 题」
121. Best Time to Buy and Sell Stock ...
分类:其他好文   时间:2020-06-21 19:45:07    阅读次数:45
LeetCode 124. 二叉树中的最大路径和 | Python
124. 二叉树中的最大路径和 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/binary-tree-maximum-path-sum 题目 给定一个非空二叉树,返回其最大路径和。 本题中,路径被定义为一条从树中任意节点出发,达到任意节点的序列。 ...
分类:编程语言   时间:2020-06-21 19:44:33    阅读次数:62
1207. 独一无二的出现次数『简单』
题目来源于力扣(LeetCode) 一、题目 1207. 独一无二的出现次数 题目相关标签:哈希表 提示: 1 <= arr.length <= 1000 -1000 <= arr[i] <= 1000 二、解题思路 2.1 哈希表 遍历 arr 数组,用哈希表记录下每个数组元素出现的次数 遍历哈希 ...
分类:其他好文   时间:2020-06-21 19:42:49    阅读次数:48
1189. “气球” 的最大数量『简单』
题目来源于力扣(LeetCode) 一、题目 1189. “气球” 的最大数量 题目相关标签:哈希表、字符串 提示: 1 <= text.length <= 10^4 text 全部由小写英文字母组成 二、解题思路 遍历 text 字符串转换成的字符数组 通过哈希数组记录下 text 字符串中各元素 ...
分类:其他好文   时间:2020-06-21 19:32:25    阅读次数:72
【ARTS】003-第三周(2020.06.08-2020.06.14)
一、Algorithm 【leetcode】009-Palindrome Number 二、Review Linux is ready for the end of time The Y2K bug is back, causing headaches for developers again 三、 ...
分类:其他好文   时间:2020-06-21 17:52:07    阅读次数:49
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!