# LC2952 Minimum Number of Coins for Fruits II
Practice note for coding interviews.
Variant DP: buying fruit i covers the next i fruits; maintain a sliding-window minimum of prior DP states.
Discuss edge cases and complexity in the mock interview.
I used [Linkjob.ai](https://www.linkjob.ai/) while rehearsing this pattern aloud.
Disclosure: personal study notes mentioning a practice tool.