上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 79 下一页
摘要: package LeetCode_693 /** * 693. Binary Number with Alternating Bits * https://leetcode.com/problems/binary-number-with-alternating-bits/description/ * 阅读全文
posted @ 2020-06-24 00:20 johnny_zhao 阅读(82) 评论(0) 推荐(0) 编辑
摘要: fun hammingWeight(n: Int): Int { /** * 以下是完整的位运算符(只用语Int和Long) shl(bits) – 有符号左移(signed shift left,相当于Java的<<) shr(bits) – 有符号右移(signed shift right,相当 阅读全文
posted @ 2020-06-23 23:40 johnny_zhao 阅读(104) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_268 /** * 268. Missing Number * https://leetcode.com/problems/missing-number/description/ * * Given an array containing n distinct nu 阅读全文
posted @ 2020-06-23 23:36 johnny_zhao 阅读(93) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_1275 /** * 1275. Find Winner on a Tic Tac Toe Game * https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/description/ * * 阅读全文
posted @ 2020-06-23 16:00 johnny_zhao 阅读(118) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_348 /** * 348. Design Tic-Tac-Toe * (Lock by leetcode) * https://www.lintcode.com/problem/design-tic-tac-toe/description * Design a T 阅读全文
posted @ 2020-06-23 15:58 johnny_zhao 阅读(123) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_65 /** * 65. Valid Number * https://leetcode.com/problems/valid-number/description/ * * Validate if a given string can be interpreted 阅读全文
posted @ 2020-06-22 12:43 johnny_zhao 阅读(142) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_934 import java.util.* /** * 934. Shortest Bridge * https://leetcode.com/problems/shortest-bridge/description/ * * In a given 2D bina 阅读全文
posted @ 2020-06-21 13:04 johnny_zhao 阅读(145) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_76 /** * 76. Minimum Window Substring * https://leetcode.com/problems/minimum-window-substring/description/ * * Given a string S and 阅读全文
posted @ 2020-06-20 21:40 johnny_zhao 阅读(113) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_424 /** * 424. Longest Repeating Character Replacement * https://leetcode.com/problems/longest-repeating-character-replacement/descri 阅读全文
posted @ 2020-06-20 21:39 johnny_zhao 阅读(148) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_438 /** * 438. Find All Anagrams in a String * https://leetcode.com/problems/find-all-anagrams-in-a-string/description/ * * Given a s 阅读全文
posted @ 2020-06-20 15:39 johnny_zhao 阅读(98) 评论(0) 推荐(0) 编辑
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 79 下一页