Created
August 24, 2019 22:35
-
-
Save nikasulo/f2542d58f4d3da9b1794ae0c12e1f0f5 to your computer and use it in GitHub Desktop.
Get the max and append it to the result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
max = get_max(deque) | |
if i >= k - 1 | |
add_max_to_result(result, max) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment