首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
leetcode
我是王大你是谁
创建于2021-05-12
订阅专栏
python 解答 leetcode
等 30 人订阅
共750篇文章
创建于2021-05-12
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
leetcode 1089. Duplicate Zeros( Python )
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elem…
leetcode 566. Reshape the Matrix( Python )
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its ori…
leetcode 1122. Relative Sort Array( Python )
Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 suc…
leetcode 766. Toeplitz Matrix( Python )
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and on…
leetcode 867. Transpose Matrix( Python )
Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and…
leetcode 1002. Find Common Characters( Python )
Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings within the list (…
leetcode 509. Fibonacci Number( Python )
The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two pr…
leetcode 922. Sort Array By Parity II( Python )
Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whe…
leetcode 832. Flipping an Image( Python )
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizonta…
leetcode 977. Squares of a Sorted Array( Python )
Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing o…
leetcode 1051. Height Checker ( Python )
Students are asked to stand in non-decreasing order of heights for an annual photo. Return the minimum number of students not standing in t…