Skip to content

Commit

Permalink
Merge pull request github#1 from ChawKokFei/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
ChawKokFei authored Mar 7, 2023
2 parents b496c66 + 13ed96d commit 427649a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Hard/q1345_jump_game_iv.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def minJumps(self, arr: list[int]) -> int:
# since when any of the index for the value
# is met, all the indices will already be
# enqueued
# https://leetcode.com/problems/jump-game-iv/solutions/3257792/C++-oror-Simple-BFS-oror-Reason-to-clear-the-map-explained-with-image/
valueAndIndices[arr[currentIndex]].clear()

currentQueueLen -= 1
Expand Down
1 change: 1 addition & 0 deletions Medium/q2187_minimum_time_to_complete_trips
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class Solution:
def minimumTime(self, time: List[int], totalTrips: int) -> int:
# Binary search for searching the best time
left = 1
right = min(time) * totalTrips

Expand Down
Empty file added temp.py
Empty file.

0 comments on commit 427649a

Please sign in to comment.