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 — algorithm013/Week_02 at master · sleepybear1125/algorithm013

Expand file tree

/

Week_02

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

Week_02

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
1.两数之和.ts
1.两数之和.ts
 
 
242.有效的字母异位词.ts
242.有效的字母异位词.ts
 
 
589.N叉树的前序遍历.ts
589.N叉树的前序遍历.ts
 
 
94.二叉树的中序遍历.ts
94.二叉树的中序遍历.ts
 
 
README.md
README.md
 
 
剑指Offer49.丑数.ts
剑指Offer49.丑数.ts
 
 

README.md

Outline

算法训练营第二周学习笔记

数据结构学习

1.哈希、集合(Hash、Set)

查询时间复杂度 O(1)
添加时间复杂度 O(1)
删除时间复杂度 O(1)

哈希冲突后: 查询时间复杂度 O(N), 添加时间复杂度 O(N), 删除时间复杂度 O(N)

2.树

二叉树

前序遍历(根,左,右)
中序遍历(左,根,右)
后序遍历(左,右,根)

二叉搜索树

左子树上所有结点的值均小于它的根结点的值,右子树上所有结点的值均大于它的根结点的值
查询时间复杂度 O(logN)
添加时间复杂度 O(logN)
删除时间复杂度 O(logN)

3.堆

大根堆
小根堆

4.图

You are visitor 01402792 — 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.