LeetCode Question · Feb 2024 · San Francisco

TikTok || OA question

1 upvote 492 views 3 replies

Question Details

A concave subsequence is a subsequence where the first and last elements are greater than all other elements in between. For example, [100, 0, 25, 11, 200] is concave, while...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Backtracking Dynamic Programming