Skip to content

Conversation

@LetMeFly666
Copy link
Owner

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

java - AC,83.64%,72.73%

Signed-off-by: LetMeFly666 <814114971@qq.com>
cpp - AC,4.00%,64.00%

Signed-off-by: LetMeFly666 <814114971@qq.com>
py - AC,100.00%,45.10%

Signed-off-by: LetMeFly666 <814114971@qq.com>
其实i<k_length的时候再判断就好,不需要等于的时候(例如k只有1个bit,那么也就i=0的时候值得判断一下)

cpp - AC,小优化,100.00%,22.22%
py - AC,29.41%,33.33%
go - AC,100.00%,88.24%

Signed-off-by: LetMeFly666 <814114971@qq.com>
java - AC,100.00%,65.71%

Signed-off-by: LetMeFly666 <814114971@qq.com>
@LetMeFly666 LetMeFly666 added the 题解 Solution label Jun 26, 2025
@LetMeFly666 LetMeFly666 self-assigned this Jun 26, 2025
@LetMeFly666 LetMeFly666 added 题解 Solution under merge pr准备就绪 请做merge前最后的检查 labels Jun 26, 2025
@LetMeFly666 LetMeFly666 requested a review from Copilot June 26, 2025 15:59
Copy link
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.

LGTM

@LetMeFly666
Copy link
Owner Author

This pull request introduces several changes across multiple files, including the addition of solutions for a new LeetCode problem, updates to documentation, and modifications to learning notes. The most significant changes are the implementation of solutions for the problem "2311. Longest Binary Subsequence Less Than or Equal to K" in multiple programming languages, updates to markdown files, and refinements in learning notes.

New Problem Solutions:

  • Added implementations for "2311. Longest Binary Subsequence Less Than or Equal to K" in C++ (Codes/2311-longest-binary-subsequence-less-than-or-equal-to-k.cpp), Go (Codes/2311-longest-binary-subsequence-less-than-or-equal-to-k.go), Java (Codes/2311-longest-binary-subsequence-less-than-or-equal-to-k.java), and Python (Codes/2311-longest-binary-subsequence-less-than-or-equal-to-k.py). These solutions use a greedy approach to select the longest subsequence under the given constraints. [1] [2] [3] [4]

Documentation Updates:

  • Added a detailed markdown file explaining the problem "2311. Longest Binary Subsequence Less Than or Equal to K," including problem description, examples, and solution methods (Solutions/LeetCode 2311.小于等于K的最长二进制子序列.md).
  • Updated the README.md file to include links and descriptions for the new problem and its solutions.

Learning Notes Refinements:

  • Enhanced the formatting in Solutions/Other-English-LearningNotes-SomeWords.md by adding color-coded highlights and example sentences for better understanding. New entries such as "cathedral" and "disbursement" were added. [1] [2]

Minor Corrections:

  • Fixed a typo in the title of Solutions/Other-Server-BeiAnXiaoTuCao.md ("备案实效" changed to "备案失效").
  • Removed redundant lines from WhatCanISay.md.

Cleanup:

  • Removed outdated entries from .changelog.

@LetMeFly666 LetMeFly666 removed the under merge pr准备就绪 请做merge前最后的检查 label Jun 26, 2025
@LetMeFly666 LetMeFly666 merged commit 891c167 into master Jun 26, 2025
1 check passed
@LetMeFly666 LetMeFly666 deleted the 2311 branch June 26, 2025 16:02
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 2311

2 participants