Skip to content

Commit

Permalink
fix infinite loop in binary_search_st.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlaursen committed Mar 3, 2020
1 parent edb3a19 commit 62cc19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itu/algs4/searching/binary_search_st.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def delete(self, key):
while j < self._n-1:
self._keys[j] = self._keys[j+1]
self._vals[j] = self._vals[j+1]
j = 1
j += 1

self._n -= 1
n = self._n
Expand Down

0 comments on commit 62cc19d

Please sign in to comment.