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

Expand file tree

/

Week_01

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

Week_01

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
1.两数之和.ts
1.两数之和.ts
 
 
189.旋转数组.ts
189.旋转数组.ts
 
 
21.合并两个有序链表.ts
21.合并两个有序链表.ts
 
 
26.删除排序数组中的重复项.ts
26.删除排序数组中的重复项.ts
 
 
42.接雨水.ts
42.接雨水.ts
 
 
70.爬楼梯.ts
70.爬楼梯.ts
 
 
88.合并两个有序数组.ts
88.合并两个有序数组.ts
 
 
README.md
README.md
 
 

README.md

Outline

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

数据结构学习

1.数组(Array)

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

常见解题方法:普通指针操作,双指针法(首位指针,快慢指针)

2.链表(Linked List)

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

常见解题方法:普通指针操作,双指针法(快慢指针)

3.跳表

优化时间复杂度的思想:升维

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

4.栈(Stack)

后进先出

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

常见解题方法:单调栈,多个栈共用

5.队列(Queue)

先进先出

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

6.双端队列(Double End Queue)

头和尾都可进行插入删除操作

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

7.优先队列(Priority Queue)

添加时间复杂度 O(1)
查询时间复杂度 O(logN)
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.