Skip to content

Commit 42819ca

Browse files
committed
update
1 parent ae0d811 commit 42819ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.devcontainer/devcontainer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"ms-toolsai.vscode-jupyter-cell-tags",
3131
"ms-toolsai.vscode-jupyter-slideshow",
3232
"njpwerner.autodocstring",
33-
"tamasfe.even-better-toml"
33+
"tamasfe.even-better-toml",
34+
"GitHub.copilot"
3435
]
3536
}
3637
},

py_dsa/greedy/hand_of_straights.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ def isNStraightHand(self, hand: List[int], groupSize: int) -> bool:
5656
if num_counter[i]==0:
5757
if min_heap[0]!=i:
5858
return False
59-
min_heap.pop()
59+
heapq.heappop(min_heap)
6060

6161
return True

0 commit comments

Comments
 (0)