zoukankan      html  css  js  c++  java
  • leetcode——832. 翻转图像

    class Solution(object):
        def flipAndInvertImage(self, A):
            """
            :type A: List[List[int]]
            :rtype: List[List[int]]
            """
            for i in range(len(A)):
                A[i]=A[i][::-1]
                for j in range(len(A[i])):
                    A[i][j]=1-A[i][j]
            return A
    执行用时 :44 ms, 在所有 python 提交中击败了73.88%的用户
    内存消耗 :11.8 MB, 在所有 python 提交中击败了14.29%的用户
     
    ——2019.10.29
    我的前方是万里征途,星辰大海!!
  • 相关阅读:
    webpack
    react 原理
    jest
    input 自动获取焦点
    taro
    html5标签
    webpack
    每日日报
    每日日报
    每日日报
  • 原文地址:https://www.cnblogs.com/taoyuxin/p/11761453.html
Copyright © 2011-2022 走看看