![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode in Python
Charlotte17
这个作者很懒,什么都没留下…
展开
-
Leetcode in Python - 1040. Moving Stones Until Consecutive II
Question:On an infinite number line, the position of the i-th stone is given by stones[i]. Call a stone an endpoint stone if it has the smallest or largest position.Each turn, you pick up an endpoi...原创 2019-05-31 09:59:23 · 321 阅读 · 0 评论 -
LeetCode in Python- 1053 Previous Permutation With One Swap
Question:Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that can be made with one swap (A swap exchanges th...原创 2019-05-29 23:13:41 · 256 阅读 · 0 评论 -
Leetcode in Python -1052. Grumpy Bookstore Owner
Question:Today, the bookstore owner has a store open for customers.length minutes. Every minute, some number of customers (customers[i]) enter the store, and all those customers leave after the end ...原创 2019-05-29 23:29:57 · 373 阅读 · 0 评论 -
Leetcode in Python -1051. Height Checker
Question:Students are asked to stand in non-decreasing order of heights for an annual photo.Return the minimum number of students not standing in the right positions. (This is the number of student...原创 2019-05-29 23:37:09 · 116 阅读 · 0 评论 -
Leetcode in Python - 1072. Flip Columns For Maximum Number of Equal Rows
Question:Given a matrix consisting of 0s and 1s, we may choose any number of columns in the matrix and flip every cell in that column. Flipping a cell changes the value of that cell from 0 to 1 or f...原创 2019-06-04 11:17:44 · 227 阅读 · 0 评论 -
Letcode in Python - 1048. Longest String Chain
Question:Given a list of words, each word consists of English lowercase letters.Let’s say word1 is a predecessor of word2 if and only if we can add exactly one letter anywhere in word1 to make it eq...原创 2019-06-04 11:41:38 · 512 阅读 · 1 评论