
应该是上周刷的题一直忘记发了
763. Partition Labels
1 |
class Solution(object): |
806. Number of Lines To Write String
1 |
def numberOfLines(self, widths, S): |
537. Complex Number Multiplication
1 |
def complexNumberMultiply(self, a, b): |
419. Battleships in a Board
1 |
def countBattleships(self, board): |
821. Shortest Distance to a Character
1 |
### def shortestToChar(self, S, C): |
530.Minimum Absolute Difference in BST
1 |
def getMinimumDifference(self, root): |
669. Trim a Binary Search Tree
1 |
def trimBST(self, root, L, R): |
513. Find Bottom Left Tree Value
1 |
def findBottomLeftValue(self, root): |
637. Average of Levels in Binary Tree
1 |
def dfs(node, depth = 0): |




近期评论