1176. Diet Plan Performance

sliding windows

time: O(n)

space: O(1)

first try like this:

one for loop

Last updated

Was this helpful?