Skip to content

Add solution for Issue #2660: Minimum Speed to Arrive on Time#2677

Merged
hackdartstorm merged 7 commits intohackdartstorm:mainfrom
Dev-06-06:feature/1870-min-speed
Feb 24, 2026
Merged

Add solution for Issue #2660: Minimum Speed to Arrive on Time#2677
hackdartstorm merged 7 commits intohackdartstorm:mainfrom
Dev-06-06:feature/1870-min-speed

Conversation

@Dev-06-06
Copy link
Copy Markdown
Contributor

Description

This PR implements the solution for the "Minimum Speed to Arrive on Time" problem using binary search.

Changes

  • Added 1870_min_speed.py to exercises/1000_programs/medium/
  • Included time complexity O(N log K) solution
  • Added local driver code for testing

Issue Link

Fixes #2660

Copilot AI review requested due to automatic review settings February 23, 2026 17:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Python solution for LeetCode #1870 (“Minimum Speed to Arrive on Time”) in the exercises/1000_programs/medium/ collection, using a binary-search approach to find the minimal feasible speed.

Changes:

  • Added 1870_min_speed.py implementing minSpeedOnTime(dist, hour) via binary search.
  • Included a small __main__ driver block with example calls.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread exercises/1000_programs/medium/1870_min_speed.py Outdated
Comment thread exercises/1000_programs/medium/1870_min_speed.py Outdated
Comment thread exercises/1000_programs/medium/1870_min_speed.py Outdated
Comment thread exercises/1000_programs/medium/1870_min_speed.py Outdated
Comment thread exercises/1000_programs/medium/1870_min_speed.py Outdated
Dev-06-06 and others added 6 commits February 23, 2026 23:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hackdartstorm hackdartstorm merged commit 9a5f5f4 into hackdartstorm:main Feb 24, 2026
@Dev-06-06 Dev-06-06 deleted the feature/1870-min-speed branch February 24, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MEDIUM] #1870 - Minimum Speed to Arrive on Time

3 participants