摘要: 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) 编辑