codility: upsilon2012 (Cartesian Sequence)

今天看了個很有趣的東西,叫笛卡爾樹 Solution to this task can be found at our blog. A non-empty zero-indexed array A consisting of N different integers is given. We are looking for the longest possible sequence built f
相關文章
相關標籤/搜索