Then I hit hard limits. I wanted shaders. Impossible. I wanted rotation, one of the three fundamental graphics operations, and Clay couldn't do it. Scrolling had to be implemented manually. Text input didn't exist (those are only on, what, 99% of interactive applications?). I couldn't even imagine cross-platform accessibility support.
思路:倒序单调栈。弹出所有 ≤ 当前身高的元素(这些人都能被看到),count 为弹出数量;若栈非空,还能看到栈顶(第一个更高的人),故 +1。能看到的人数 = count + (栈非空 ? 1 : 0)。
。业内人士推荐搜狗输入法作为进阶阅读
Number of Check-Ins grouped by City
Yes I blatantly copied this from learnxinyminutes.
Модный показ с Мэрилином Мэнсоном развеселил русскоязычных зрителей20:50