Skip to content

update: 添加问题“2540.最小公共值”的代码和题解#1598

Merged
LetMeFly666 merged 1 commit into
masterfrom
2540
May 19, 2026
Merged

update: 添加问题“2540.最小公共值”的代码和题解#1598
LetMeFly666 merged 1 commit into
masterfrom
2540

Conversation

@LetMeFly666
Copy link
Copy Markdown
Owner

By newSolution.py using GH on MacOS | close: #1597

@LetMeFly666 LetMeFly666 requested a review from Tisfy as a code owner May 19, 2026 10:05
Copilot AI review requested due to automatic review settings May 19, 2026 10:05
@LetMeFly666 LetMeFly666 added the 题解 Solution label May 19, 2026
@LetMeFly666 LetMeFly666 self-assigned this May 19, 2026
@LetMeFly666 LetMeFly666 added the under merge pr准备就绪 请做merge前最后的检查 label May 19, 2026
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 solution and writeup links for LeetCode problem 2540 "Minimum Common Value", auto-generated via newSolution.py.

Changes:

  • Add C++ two-pointer solution at Codes/2540-minimum-common-value.cpp
  • Add README table row for problem 2540

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
Codes/2540-minimum-common-value.cpp Two-pointer O(n+m) solution returning smallest common value, or -1
README.md New row linking to problem, blog, CSDN, and LeetCode solution

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

@LetMeFly666 LetMeFly666 removed the under merge pr准备就绪 请做merge前最后的检查 label May 19, 2026
@LetMeFly666 LetMeFly666 merged commit 4f2c31d into master May 19, 2026
5 checks passed
@LetMeFly666 LetMeFly666 deleted the 2540 branch May 19, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

题解 Solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[newSolution]Who can add 1 more problem of LeetCode 2540

3 participants