Skip to content

update: 添加问题“1200.最小绝对差”的代码(并更新其题解)#1349

Merged
LetMeFly666 merged 1 commit intomasterfrom
1200
Jan 26, 2026
Merged

update: 添加问题“1200.最小绝对差”的代码(并更新其题解)#1349
LetMeFly666 merged 1 commit intomasterfrom
1200

Conversation

@LetMeFly666
Copy link
Copy Markdown
Owner

By newSolution.py using GH on Windows | close: #1348

1200: AC.cpp+py+go(#1348) + word: (en)

cpp - AC,78.75%,27.52%
py - AC,79.19%,24.53%
go - AC,16.13%,61.29%

Signed-off-by: LetMeFly666 <Tisfy@qq.com>
Copilot AI review requested due to automatic review settings January 26, 2026 15:54
@LetMeFly666 LetMeFly666 added the 题解 Solution label Jan 26, 2026
@LetMeFly666 LetMeFly666 self-assigned this Jan 26, 2026
Copy link
Copy Markdown
Owner Author

@LetMeFly666 LetMeFly666 left a comment

Choose a reason for hiding this comment

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

`

@LetMeFly666 LetMeFly666 merged commit 7bb3415 into master Jan 26, 2026
5 of 6 checks passed
@LetMeFly666 LetMeFly666 deleted the 1200 branch January 26, 2026 15:58
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

This PR adds solution code for LeetCode 1200(最小绝对差), fixes previously incorrect implementations for LeetCode 1984(Python/Go), and does some repo housekeeping.

Changes:

  • Added LeetCode 1200 solutions in Python/Go/C++.
  • Corrected LeetCode 1984 solutions (Python maxmin, Go implementation cleanup).
  • Removed redundant 1984 “_AC” files and updated repo notes/commit message.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
todo Updates scratchpad notes; includes a reference to the 1200 write-up.
.commitmsg Updates commit summary for the day’s additions.
Codes/1984-minimum-difference-between-highest-and-lowest-of-k-scores_20260125.py Fixes incorrect aggregation (maxmin) for the sliding window diff.
Codes/1984-minimum-difference-between-highest-and-lowest-of-k-scores_20260125.go Fixes function signature/return, but still uses min without ensuring portability.
Codes/1984-minimum-difference-between-highest-and-lowest-of-k-scores_20260125_AC.py Removed redundant AC-only copy.
Codes/1984-minimum-difference-between-highest-and-lowest-of-k-scores_20260125_AC.go Removed redundant AC-only copy.
Codes/1200-minimum-absolute-difference_20260126.py Adds Python solution for problem 1200.
Codes/1200-minimum-absolute-difference_20260126.go Adds Go solution for problem 1200.
Codes/1200-minimum-absolute-difference_20260126.cpp Adds C++ solution for problem 1200.

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

import "sort"

func minimumAbsDifference(arr []int) (ans [][]int) {
sort.Ints(arr)
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

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

This file has non-gofmt indentation (e.g., sort.Ints(arr) is space-indented while the rest uses tabs). Running gofmt will keep formatting consistent across Go solutions.

Suggested change
sort.Ints(arr)
sort.Ints(arr)

Copilot uses AI. Check for mistakes.
Comment thread Codes/1200-minimum-absolute-difference_20260126.py
Comment thread Codes/1200-minimum-absolute-difference_20260126.go
Comment thread todo
Comment thread Codes/1200-minimum-absolute-difference_20260126.cpp
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 1200

2 participants