摘要:
package LeetCode_693 /** * 693. Binary Number with Alternating Bits * https://leetcode.com/problems/binary-number-with-alternating-bits/description/ * 阅读全文
摘要:
fun hammingWeight(n: Int): Int { /** * 以下是完整的位运算符(只用语Int和Long) shl(bits) – 有符号左移(signed shift left,相当于Java的<<) shr(bits) – 有符号右移(signed shift right,相当 阅读全文
摘要:
package LeetCode_268 /** * 268. Missing Number * https://leetcode.com/problems/missing-number/description/ * * Given an array containing n distinct nu 阅读全文
摘要:
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/ * * 阅读全文
摘要:
package LeetCode_348 /** * 348. Design Tic-Tac-Toe * (Lock by leetcode) * https://www.lintcode.com/problem/design-tic-tac-toe/description * Design a T 阅读全文
摘要:
package LeetCode_65 /** * 65. Valid Number * https://leetcode.com/problems/valid-number/description/ * * Validate if a given string can be interpreted 阅读全文
摘要:
package LeetCode_934 import java.util.* /** * 934. Shortest Bridge * https://leetcode.com/problems/shortest-bridge/description/ * * In a given 2D bina 阅读全文
摘要:
package LeetCode_76 /** * 76. Minimum Window Substring * https://leetcode.com/problems/minimum-window-substring/description/ * * Given a string S and 阅读全文
摘要:
package LeetCode_424 /** * 424. Longest Repeating Character Replacement * https://leetcode.com/problems/longest-repeating-character-replacement/descri 阅读全文
摘要:
package LeetCode_438 /** * 438. Find All Anagrams in a String * https://leetcode.com/problems/find-all-anagrams-in-a-string/description/ * * Given a s 阅读全文