上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页
摘要: 题目: 给定一个"HH:MM"格式的时间,重复使用这些数字,返回下一个最近的时间。每个数字可以被重复使用任意次。 保证输入的时间都是有效的。例如,"01:34","12:09" 都是有效的,而"1:34","12:9"都不是有效的时间。 样例 样例 1: 输入: "19:34" 输出: "19:39 阅读全文
posted @ 2020-02-16 22:14 silentteller 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 题目: You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Integer (one round's score): 阅读全文
posted @ 2020-02-16 22:02 silentteller 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 题目: A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are  阅读全文
posted @ 2020-02-15 21:27 silentteller 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 自定义排序一个List<Pair<Integer, Integer>>,根据pair的key由小到大排序,如果相同,则根据pair的value由大到小排序。 最开始写的比较器如下: Collections.sort(list, new Comparator<Pair<Integer, I 阅读全文
posted @ 2020-02-15 16:31 silentteller 阅读(1649) 评论(0) 推荐(0) 编辑
摘要: 错误描述: 使用JDBC连接数据库是产生错误 应该是数据库时区问题,在url配置时设置serverTimezone = GMT即可 url = "jdbc:mysql://localhost:3306/student?serverTimezone = GMT"; 阅读全文
posted @ 2020-02-14 20:47 silentteller 阅读(2000) 评论(0) 推荐(1) 编辑
摘要: 题目: https://leetcode.com/problems/friend-circles/ There are N students in a class. Some of them are friends, while some are not. Their friendship is t 阅读全文
posted @ 2020-02-13 21:08 silentteller 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 题目: There is a strange printer with the following two special requirements: The printer can only print a sequence of the same character each time. At 阅读全文
posted @ 2020-02-13 19:50 silentteller 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adj 阅读全文
posted @ 2020-02-12 22:38 silentteller 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. 阅读全文
posted @ 2020-02-12 22:02 silentteller 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 加载驱动程序: Class.forName(driverClass) //加载MySql驱动 Class.forName("com.mysql.jdbc.Driver") //加载Oracle驱动 Class.forName("oracle.jdbc.driver.OracleDriver") 获得 阅读全文
posted @ 2020-02-12 17:04 silentteller 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页