首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
想熬夜的少年all-in华为OD
获赞
52
粉丝
2
关注
4
看过 TA
40
湘潭大学
2018
Java
IP属地:广东
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑想熬夜的少年all-in华为OD吗?
发布(64)
评论
刷题
收藏
想熬夜的少年all-in华为OD
关注TA,不错过内容更新
关注
2022-12-24 17:30
已编辑
湘潭大学 Java
题解 | #有效括号序列#
import java.util.*; public class Solution { /** * * @param s string字符串 * @return bool布尔型 */ public boolean isValid (String s) { // write code here if (s.length() % 2 != 0) { return false; } LinkedList<Character> stack =...
0
点赞
评论
收藏
分享
2022-12-22 22:11
已编辑
湘潭大学 Java
题解 | #查找两个字符串a,b中的最长公共子串#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String nextLine = scanner.nextLine(); String nextLine1 = scanner.nextLine(); String shortStr = ...
0
点赞
评论
收藏
分享
2022-12-22 21:44
已编辑
湘潭大学 Java
题解 | #成绩排序#
import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int size = scanner.nextInt(); int sort = scanner.nextInt(); ArrayList<String[]> arrayList = new...
0
点赞
评论
收藏
分享
2022-12-21 21:33
已编辑
湘潭大学 Java
题解 | #查找兄弟单词#
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int size = scanner.nextInt();...
0
点赞
评论
收藏
分享
2022-12-12 23:22
湘潭大学 Java
题解 | #整数与IP地址间的转换#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String nextLine = scanner.nextLine(); String nextLine1 = scanner.nextLine(); convertIp2Number(n...
0
点赞
评论
收藏
分享
2022-12-11 22:14
已编辑
湘潭大学 Java
题解 | #删除字符串中出现次数最少的字符#
import java.util.Scanner; import java.util.HashMap; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String nextLine = scanner.nextLine(); HashMap<Character, Integer> hashM...
0
点赞
评论
收藏
分享
2022-12-11 22:13
已编辑
湘潭大学 Java
题解 | #密码验证合格程序#
import java.util.Scanner; import java.util.TreeSet; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextLine()) { String nextLine = scanner.nextLine(); ...
0
点赞
评论
收藏
分享
2022-12-11 22:14
已编辑
湘潭大学 Java
题解 | #明明的随机数#
import java.util.Scanner; import java.util.TreeSet; /** * 明明的随机数 * */ public class Main_3 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int length = scanner.nextInt(); TreeSet<Integer> treeSet = new TreeSet<>(); ...
0
点赞
评论
收藏
分享
2022-10-08 22:34
湘潭大学 Java
题解 | #数组中重复的数字#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * *&n...
0
点赞
评论
收藏
分享
2022-07-11 23:39
已编辑
湘潭大学 Java
题解 | #最长回文子串#
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; /** * 【最长回文子串】 * */ public class Main { public static void main(String[] args)...
0
点赞
评论
收藏
分享
2022-07-03 21:52
已编辑
湘潭大学 Java
题解 | #走方格的方案数#
参考大佬的代码 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); &nbs...
0
点赞
评论
收藏
分享
2022-07-03 15:50
已编辑
湘潭大学 Java
题解 | #查找组成一个偶数最接近的两个素数#
import java.util.Scanner; /** * 【查找组成一个偶数最接近的两个素数】 * */ public class Main { public static void main(String[] args) { Scanner sc = new Scann...
0
点赞
评论
收藏
分享
2022-07-02 15:58
湘潭大学 Java
题解 | #输入整型数组和排序标识,按照升序或降序排序#
效率为啥这么低? package com.example.demo.simple; import java.util.*; /** * 【输入整型数组和排序标识,对其元素按照升序或降序进行排序】 * */ public class Main_40 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int size = sc.nextInt(); Integer[] ints = new Integer[size]; ...
0
点赞
评论
收藏
分享
2022-07-02 15:25
湘潭大学 Java
题解 | #尼科彻斯定理#
package com.example.demo.simple; import java.util.Scanner; public class Main_39 { public static void main(String[] args) { Scanner sc = new Scanner(System.i...
0
点赞
评论
收藏
分享
2022-07-02 15:09
湘潭大学 Java
题解 | #统计大写字母个数#
package com.example.demo.simple; import java.util.Scanner; /** * 【统计大写字母个数】 * */ public class Main_38 { public static void main(String[] args) { Scanner&...
0
点赞
评论
收藏
分享
1
2
3
4
5
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务