![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
math
feeeeeeet
这个作者很懒,什么都没留下…
展开
-
Leetcode 29. Divide Two Integers
2 solutions- Binary Search & Shifts Solution 1 Binary Search class Solution { public int divide(int dividend, int divisor){ if(dividend==divisor){ return 1; } ...原创 2018-11-17 04:04:12 · 88 阅读 · 0 评论 -
Leetcode 36. Valid Sudoku
How to decide which block the element belongs to: 3*(i//3)+j//3 class Solution: def isValidSudoku(self, board): """ :type board: List[List[str]] :rtype: bool """ ...原创 2018-12-04 11:51:06 · 138 阅读 · 2 评论 -
Leetcode 43. Multiply Strings
https://blog.csdn.net/u010983881/article/details/77503519 class Solution: def multiply(self, num1, num2): """ :type num1: str :type num2: str :rtype: str "...原创 2018-12-05 05:05:22 · 76 阅读 · 0 评论 -
Leetcode 48. Rotate Image
Fold along the middle line and then fold along the diagonal line. 1 2 3 \space \space \space \space 3 2 1 \space \space ...原创 2018-12-05 23:21:09 · 86 阅读 · 0 评论 -
Leetcode 60. Permutation Sequence
n=4,k=9 There are 4 groups of n=4 (1-6,7-12,13-18,19-24), 9 belongs to the second one. So the first number is the second one of [1,2,3,4], which is 2. There are 3 groups of n=3 (1-2,3-4,5-6), the rema...原创 2018-12-12 08:36:11 · 96 阅读 · 0 评论