1p3a Experience · May 2026

pinterest tech phone screen: append pins to shortest column problem

SWE Phone Screen newgrad
2 upvotes 3 replies

Interview Experience

就是一堆pins,然后每个pin都有自己的height。

然后在固定数量的column上append这些pins,要求每次都append到最短的column上。

本质就是用min heap来排序,要求分析时间,空间复杂度

Full Details

就是一堆pins,然后每个pin都有自己的height。

然后在固定数量的column上append这些pins,要求每次都append到最短的column上。

本质就是用min heap来排序,要求分析时间,空间复杂度