Leetcode 132Pattern 题意很简单,过程很巧妙
Given a sequence of n integers a1, a2, …, an, a 132 pattern is a subsequence ai, aj, ak such that i < j < k and ai < ak < aj. Design an algorithm that takes a list of n numbers as input an...
原创
2019-03-12 11:33:04 ·
322 阅读 ·
0 评论