会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mx_info
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
30
下一页
2022年9月6日
leetcode202:快乐数
摘要: package com.mxnet; import java.util.HashSet; public class Solution202 { public static void main(String[] args) { } /** * 编写一个算法来判断一个数 n 是不是快乐数。 * * 「快
阅读全文
posted @ 2022-09-06 21:32 mx_info
阅读(20)
评论(0)
推荐(0)
2022年9月5日
leetcode206:反转链表
摘要: package com.mxnet; import java.util.Stack; public class Solution206 { public static void main(String[] args) { } /** * 给你单链表的头节点 head ,请你反转链表,并返回反转后的链
阅读全文
posted @ 2022-09-05 21:44 mx_info
阅读(15)
评论(0)
推荐(0)
2022年9月4日
leetcode215:数组中的第K个最大元素
摘要: package com.mxnet; import java.util.Random; public class Solution215 { //生成随机数 Random random = new Random(); /** * 给定整数数组 nums 和整数 k,请返回数组中第 k 个最大的元素。
阅读全文
posted @ 2022-09-04 12:38 mx_info
阅读(24)
评论(0)
推荐(0)
2022年8月28日
leetcode191:位1的个数
摘要: package com.mxnet; public class Solution191 { public static void main(String[] args) { System.out.println(1 << 5); } /** * 编写一个函数,输入是一个无符号整数(以二进制串的形式)
阅读全文
posted @ 2022-08-28 20:32 mx_info
阅读(26)
评论(0)
推荐(0)
leetcode198:打家劫舍
摘要: package com.mxnet; public class Solution198 { public static void main(String[] args) { } /** * 你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金 * 影响你偷窃的唯一制约因素就是相邻的房屋装
阅读全文
posted @ 2022-08-28 17:52 mx_info
阅读(20)
评论(0)
推荐(0)
2022年8月27日
leetcode139:单词拆分
摘要: package com.mxnet; import java.util.HashSet; import java.util.List; public class Solution139 { public static void main(String[] args) { } /** * 给你一个字符
阅读全文
posted @ 2022-08-27 21:06 mx_info
阅读(24)
评论(0)
推荐(0)
leetcode142:环形链表2
摘要: package com.mxnet; import java.util.HashSet; public class Solution142 { public static void main(String[] args) { String convert = convert("43525252626
阅读全文
posted @ 2022-08-27 20:34 mx_info
阅读(18)
评论(0)
推荐(0)
leetcode169:多数元素
摘要: package com.mxnet; import java.util.HashMap; import java.util.Set; public class Solution169 { public static void main(String[] args) { } /** * 给定一个大小为
阅读全文
posted @ 2022-08-27 17:39 mx_info
阅读(13)
评论(0)
推荐(0)
2022年8月26日
leetcode141:环形链表
摘要: package com.mxnet; import java.util.HashSet; public class Solution141 { public static void main(String[] args) { } /** * 给你一个链表的头节点 head ,判断链表中是否有环 *
阅读全文
posted @ 2022-08-26 21:16 mx_info
阅读(16)
评论(0)
推荐(0)
leetcode147:对链表进行插入排序
摘要: package com.mxnet; public class Solution147 { public static void main(String[] args) { } /** * Q: 给定单个链表的头 head ,使用 插入排序 对链表进行排序,并返回 排序后链表的头 * @param
阅读全文
posted @ 2022-08-26 17:15 mx_info
阅读(27)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
30
下一页
公告