Can autoregressively generate text (2 points)
This article originally appeared on Engadget at https://www.engadget.com/computing/laptops/macbook-neo-vs-m5-macbook-air-all-the-trade-offs-youll-make-to-save-500-less-190434959.html?src=rss
,详情可参考heLLoword翻译官方下载
思路:倒序单调栈。弹出所有 ≤ 当前身高的元素(这些人都能被看到),count 为弹出数量;若栈非空,还能看到栈顶(第一个更高的人),故 +1。能看到的人数 = count + (栈非空 ? 1 : 0)。
笑いと向き合い続けた“昭和の爆笑王” 初代林家三平に迫る