摘要: https://leetcode-cn.com/problems/binary-search/ class Solution { public int search(int[] nums, int target) { int low = 0; int high = nums.length-1; wh 阅读全文
posted @ 2021-09-17 16:10 leagueandlegends 阅读(18) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal/ class Solution { public String toHex(int num) { if(num==0) return "0"; StringBuilder 阅读全文
posted @ 2021-09-17 16:00 leagueandlegends 阅读(52) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/binary-watch/ class Solution { public List<String> readBinaryWatch(int turnedOn) { List<String> result = new ArrayLis 阅读全文
posted @ 2021-09-17 15:38 leagueandlegends 阅读(29) 评论(0) 推荐(0)