Skip to content

Conversation

Copy link

Copilot AI commented Nov 28, 2025

Implements a complete reference file containing all classic sorting algorithms in C++ with bilingual documentation (Chinese/English).

Algorithms Included

  • Comparison-based: Bubble, Selection, Insertion, Shell, Merge, Quick, Heap
  • Non-comparison: Counting, Radix, Bucket

Features

  • Time/space complexity annotations for each algorithm
  • Stability indicators
  • Self-contained test harness in main()
  • Summary complexity table
// Example usage
vector<int> arr = {64, 34, 25, 12, 22, 11, 90};
quickSort(arr);  // or any other algorithm

All algorithms verified against test cases.

Original prompt

帮我写一个所有数据结构与算法中的排序的C++的 文件,然后里面包含所有的排序算法,只要是经典的就行


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add classic sorting algorithms in C++ Add comprehensive C++ sorting algorithms collection Nov 28, 2025
Copilot AI requested a review from hrinnnn November 28, 2025 15:50
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.

2 participants