上一页 1 2 3 4 5 6 ··· 30 下一页
摘要: 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 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(13) 评论(0) 推荐(0) 编辑
摘要: package com.mxnet; public class Solution198 { public static void main(String[] args) { } /** * 你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金 * 影响你偷窃的唯一制约因素就是相邻的房屋装 阅读全文
posted @ 2022-08-28 17:52 mx_info 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(12) 评论(0) 推荐(0) 编辑
摘要: package com.mxnet; public class Solution147 { public static void main(String[] args) { } /** * Q: 给定单个链表的头 head ,使用 插入排序 对链表进行排序,并返回 排序后链表的头 * @param 阅读全文
posted @ 2022-08-26 17:15 mx_info 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 30 下一页