Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

acwing, leetcode, kickstart, 算法模板, PAT 等等

License

NotificationsYou must be signed in to change notification settings

upupming/algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked fromliuchuo/PAT.

主要存放训练刷题时的代码,有些有 README,有些源代码里面有注释可以看。

关于算法复杂度

在竞赛中,一般算机一秒能运行5 x 10^8次汁算,如果题目給出的时间限制カ1s,那么你选择的算法执行的计算次数最多应该在10^8量级オ有可能解决这个题目。一般 O(n)的算法能解决的数据范围在n < 10^8。

  • O(n*logn)的算法能解决的数据范围在n <= 10^6。
  • O(n*sqrt(n) )的算法能解决的数据范围在n < 10^5。
  • O(n^2)的算法能解决的数据范围在n<5000。
  • O(n^3)的算法能解决的数据范围在n <300。
  • O(2^n)的算法能解决的数据范围在n < 25。
  • O(n!)的算法能解决的数据范围在n < 11。

以上范围仅供参考,实际中还要考虑每种算法的常数。

推荐一些优质的资源

Stargazers over time

Stargazers over time


[8]ページ先頭

©2009-2025 Movatter.jp