题目地址
给你一个 32 位的有符号整数 x ,返回将 x 中的数字部分反转后的结果。
如果反转后整数超过 32 位的有符号整数的范围 [−231, 231...
前端
2022.06.01
0
1034
算法记录
LeetCode 题目:
  给你一个整数 n ,返回和为 n 的完全平方数的最少数量 ...
Java
2022.06.01
0
1021
算法记录
LeetCode 题目:
  你在和朋友一起玩猜数字(Bulls and Cows)游戏...
Java
2022.06.01
0
1248
算法记录
LeetCode 题目:
  超级丑数是一个正整数,并满足其所有质因数都出现在质数数组 ...
Java
2022.06.01
0
1122
本次刷题日记的第 51 篇,力扣题为:验证二叉树的前序序列化,中等
一、题目描述:
...
后端
2022.06.01
0
936
算法记录
LeetCode 题目:
  给你一个 m * n 的矩阵,矩阵中的元素不是 0 就是 ...
后端
2022.05.31
0
1061
本次刷题日记的第 50 篇,力扣题为:从根到叶的二进制数之和,简单
一、题目描述:
...
后端
2022.05.31
0
1025
描述
Given a binary string s and an integer k, return true if every binary code of length ...
Python
2022.05.31
0
1167
题目地址
给定一个字符串 queryIP。如果是有效的 IPv4 地址,返回 "IPv4" ;如果是有效的 IPv6 地址,返回 "IPv6" ;如果不是上述类型的 IP 地址...
前端
2022.05.31
0
1064
题目地址
给定一个非负整数数组 nums ,你最初位于数组的 第一个下标 。
数组中的每个元素代表你在该位置可以跳跃的最大长度。
判断你是否...
前端
2022.05.31
0
1065
题目地址
给定一个字符串 queryIP。如果是有效的 IPv4 地址,返回 "IPv4" ;如果是有效的 IPv6 地址,返回 "IPv6" ;如果不是上述类型的 IP 地址...
前端
2022.05.30
0
899
描述
Given an m x n integers matrix, return the length of ...
Python
2022.05.30
0
1044
本次刷题日记的第 50 篇,力扣题为:1021. 删除最外层的括号,简单
一、题目描述:
...
后端
2022.05.30
0
979
描述
You are a hiker preparing for an upcoming hike. You a...
Golang
2022.05.30
0
1104
本次刷题日记的第 48 篇,力扣题为:17.11. 单词距离 ,中等
一、题目描述:
...
后端
2022.05.29
0
1006
描述
You are given an integer array coins representing coins of different denominations an...
Python
2022.05.29
0
1174
题目描述
这是 LeetCode 上的 1021. 删除最外层的括号 ,难度为 简单。
Tag : 「模拟」、「双指针」
有效括号字符串为空...
后端
2022.05.29
0
898
Leetcode5. 最长回文子串
持续创作,加速成长!这是我参与「掘金日新计划 · 6 月更文挑战」的第3天,...
Java
2022.05.29
0
1025
题目链接:713. 乘积小于 K 的子数组
题目描述
给你一个...
后端
2022.05.29
0
1045
算法记录
LeetCode 题目:
  给你一个整数数组 citations ,其中 citati...
Java
2022.05.27
0
962
描述
You are given a 2D integer array stockPrices where st...
Python
2022.05.27
0
1044
描述
Given a string containing just the characters '(' and ')', find the length of the lon...
Python
2022.05.27
0
1075
题目地址
给你一个字符串 s,找到 s 中最长的回文子串。
示例 1:
输入: s = "babad"
输出: "bab"
解释: "aba" 同样...
前端
2022.05.26
0
1004
题目地址
请你帮忙给从 1 到 n 的数设计排列方案,使得所有的「质数」都应该被放在「质数索引」(索引从 1 开始)上;你需要返回可能的方案总数。
让我们一起...
前端
2022.05.26
0
927
算法记录
LeetCode 题目:
  给你一个整数数组 citations ,其中 citati...
Java
2022.05.25
0
1001
描述
Given a string s and a character letter, return the percentage of characters in s tha...
Python
2022.05.24
0
1204
算法记录
LeetCode 题目:
  请你设计一个数据结构,支持 添加新单词 和 查找字符串是否...
Java
2022.05.24
0
1011
算法记录
LeetCode 题目:
  给定一个二叉搜索树的根节点 root ,和一个整数 k ,...
Java
2022.05.24
0
1008
描述
Given an empty set of intervals, implement a data structure that can:
...
Python
2022.05.24
0
2477
题目描述
这是 LeetCode 上的 面试题 02.05. 链表求和 ,难度为 中等。
Tag : 「链表」、「模拟」
给定两个用链表表示...
Java
2022.05.24
0
998