Skip to content

Instantly share code, notes, and snippets.

@nikasulo
Created August 24, 2019 22:35
Show Gist options
  • Save nikasulo/f2542d58f4d3da9b1794ae0c12e1f0f5 to your computer and use it in GitHub Desktop.
Save nikasulo/f2542d58f4d3da9b1794ae0c12e1f0f5 to your computer and use it in GitHub Desktop.
Get the max and append it to the result
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