摘要:
package com.mxnet; import java.util.HashSet; public class Solution202 { public static void main(String[] args) { } /** * 编写一个算法来判断一个数 n 是不是快乐数。 * * 「快 阅读全文
摘要:
package com.mxnet; import java.util.Stack; public class Solution206 { public static void main(String[] args) { } /** * 给你单链表的头节点 head ,请你反转链表,并返回反转后的链 阅读全文
摘要:
package com.mxnet; import java.util.Random; public class Solution215 { //生成随机数 Random random = new Random(); /** * 给定整数数组 nums 和整数 k,请返回数组中第 k 个最大的元素。 阅读全文
摘要:
package com.mxnet; public class Solution191 { public static void main(String[] args) { System.out.println(1 << 5); } /** * 编写一个函数,输入是一个无符号整数(以二进制串的形式) 阅读全文
摘要:
package com.mxnet; public class Solution198 { public static void main(String[] args) { } /** * 你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金 * 影响你偷窃的唯一制约因素就是相邻的房屋装 阅读全文
摘要:
package com.mxnet; import java.util.HashSet; import java.util.List; public class Solution139 { public static void main(String[] args) { } /** * 给你一个字符 阅读全文
摘要:
package com.mxnet; import java.util.HashSet; public class Solution142 { public static void main(String[] args) { String convert = convert("43525252626 阅读全文
摘要:
package com.mxnet; import java.util.HashMap; import java.util.Set; public class Solution169 { public static void main(String[] args) { } /** * 给定一个大小为 阅读全文
摘要:
package com.mxnet; import java.util.HashSet; public class Solution141 { public static void main(String[] args) { } /** * 给你一个链表的头节点 head ,判断链表中是否有环 * 阅读全文
摘要:
package com.mxnet; public class Solution147 { public static void main(String[] args) { } /** * Q: 给定单个链表的头 head ,使用 插入排序 对链表进行排序,并返回 排序后链表的头 * @param 阅读全文