expectedoutputtwothreepkeyeddictuos.txt

来自「国外的数据结构与算法分析用书」· 文本 代码 · 共 76 行

TXT
76
字号
BasicDictUos Demo for TwoThreePKeyedDictUos
Inserting... 23
Inserting... 1
Inserting... 4
Inserting... 18
Inserting... 2
Inserting... 102
Inserting... -50
current contents: -50 1 2 4 18 23 102 
Inserting... 3
Inserting... 54
Inserting... 12
Inserting... -18
Inserting... 32
Current contents: -50 18 -12 1 2 3 4 18 23 32 54 102 
is it empty? false
Is it full? false
Has 3? true
Deleting 3
Has 3? false
Current contents:-50 18 -12 1 2 4 18 23 32 54 102 
has 99? false
Is it full? false
Deleting 32
Deleting -18
Deleting -12
Deleting 54
Deleting -50
Deleting 102
Deleting 2
Deleting 18
Deleting 4
Deleting 1
Deleting 23
Wipe out
is it empty? true
Inserting.. 23
Obtain 23: 23
Deleting 23
is it empty? true
that's it

PKeyedDictUos Demo forTwoThreePKeyedDictUos
Inserting... 23
Inserting... 1
Inserting... 4
Inserting... 23
Inserting... 18
Inserting... 2
Inserting... 23
Inserting... 102
Inserting... 23
Current contents: 1 2 4 23 23 23 18 23 102 
Frequency of 23? 1
Deleting 23
Frequency of 23? 0
Go first
Delete Item
Insert 32
iterate through the list:
2 4 23 23 23 18 23 102  
Search for 2: 2
Current contents: 2 4 23 23 23 18 23 102 
iterate through the list and delete everything:
Current contents: 

Wipe out
is it empty? true
Inserting.. 23
Current contents: 23 
Frequency of 23? 1
Frequency of 9999? 0
Deleting 23
is it empty? true
that's it

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?