题目描述 On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k times. Now given a
思路: 多个排序要求,以及取舍记录,比如取一条。适合用窗口函数。 row_number() over (partition by xx order by xx desc,xx asc) rank()over (partition ..) dense_rank()over (partition..) rank() : 阶梯排序,前两个是并列第一名,接下来就是第3名 dense_rank(