expectedoutputarrayeddictuos.txt

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

TXT
80
字号
BasicDictUos Demo for ArrayedDictUos
Inserting... 23
Inserting... 1
Inserting... 4
Inserting... 18
Inserting... 2
Inserting... 102
Inserting... -50
current contents: 23 1 4 18 2 102 -50 
Inserting... 3
Inserting... 54
Inserting... -12
Inserting... -18
Inserting... 32
Current contents: 23 1 4 18 2 102 -50 3 54 -12 -18 32 
is it empty? false
Is it full? true
Has 3? true
Obtain 3: 3
Obtain 23: 23
Deleting 3
Has 3? false
Current contents:23 1 4 18 2 102 -50 54 -12 -18 32 
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

DictUos Demo forArrayedDictUos
Inserting... 23
Inserting... 1
Inserting... 4
Inserting... 23
Inserting... 18
Inserting... 2
Inserting... 23
Inserting... 102
Inserting... 23
Current contents: 23 1 4 23 18 2 23 102 23 
Frequency of 23? 4
Deleting 23
Frequency of 23? 3
Go first
Go forth
Delete Item
Insert 32

Search for 2: Item exists? true
2
Delete the Item
Iterate through the list:
1 23 18 23 102 23 32 Current contents: 1 23 18 23 102 23 32 
Delete every item in the dictionary
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 + -
显示快捷键?