摘要: 题目如下: In a warehouse, there is a row of barcodes, where the i-th barcode is barcodes[i]. Rearrange the barcodes so that no two adjacent barcodes are e 阅读全文
posted @ 2019-05-27 14:35 seyjs 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 题目如下: 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 ri 阅读全文
posted @ 2019-05-27 14:31 seyjs 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that 阅读全文
posted @ 2019-05-27 10:07 seyjs 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Today, the bookstore owner has a store open for customers.length minutes. Every minute, some number of customers (customers[i]) enter the store, 阅读全文
posted @ 2019-05-27 10:02 seyjs 阅读(728) 评论(0) 推荐(0) 编辑