注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
The interview process was recruiter call which scheduled a phone interview. Phone interview lasts 45 minutes.
Question asked was similar to LC 2866 Beautiful Towers II
You are given a 0-indexed array maxHeights of n integers.
You are tasrn the maximum possible sum of heights of a beautiful configuration of towers.
Input: maxHeights = [5,3,4,1,1]
Output: 13 |