Skip to content

Commit

Permalink
[239. Sliding Window Maximum][Accepted]committed by LeetCode Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
seaskymonster committed Oct 1, 2016
1 parent e3ad629 commit 5087324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 239-Sliding-Window-Maximum/solution.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
public class Solution {
public void addElement(Deque<Integer> dq, int element){
while(!dq.isEmpty() && dq.peekLast() <= element){
while(!dq.isEmpty() && dq.peekLast() < element){
dq.pollLast();
}
dq.offerLast(element);
Expand Down

0 comments on commit 5087324

Please sign in to comment.