GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PromiliaCabbird/clrs-python: Python implementation for Introduction to Algorithms 3rd edition

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

算法导论学习笔记

使用 Python 实现算法导论一书中的算法和习题代码,并尝试用类型注解(type hint)标注函数和方法的参数与返回类型。变量仅标注一部分,类型非常直观或简单,以及难以写出的不做标注。测试代码不做标注。

Python 最新版本为 Python3.10,值得注意的类型注解特性:

  • 无需导入 typing 模块将废弃的类型。例如标注一个参数 a 为数值的列表,Python3.8 及之前需要先导入 List,写成 a: List[int]。Python3.9 之后可以直接写 a: list[int]。
  • 无需导入 Union 或 Option。Python3.10 之后 Union[str, int] 可以用 str | int 代替,Option[str] 可以用 str | None 代替。

笔记在个人博客:https://lumicia.github.io/tags/clrs。

Chap2

  • insertion sort
  • merge sort

About

Python implementation for Introduction to Algorithms 3rd edition

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.