diff --git a/239-Sliding-Window-Maximum/solution.java b/239-Sliding-Window-Maximum/solution.java
index 8f6e642..ef2d893 100644
--- a/239-Sliding-Window-Maximum/solution.java
+++ b/239-Sliding-Window-Maximum/solution.java
@@ -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);