摘要: 问题: 给定一个数组,从左向右遍历数组每一个元素, 对每一个元素,记录,其右边比他小的元素个数到res数组中。 求res数组。 Example: Input: [5,2,6,1] Output: [2,1,1,0] Explanation: To the right of 5 there are 2 阅读全文
posted @ 2020-08-03 17:21 habibah_chang 阅读(120) 评论(0) 推荐(0) 编辑