expectedoutputdblopenadrhashtableuos.txt

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

TXT
78
字号
BasicDictUos Demo for DblOpenAdrHashTableUos
Inserting... 23
Inserting... 1
Inserting... 4
Inserting... 18
Inserting... 2
Inserting... 102
Inserting... -50
current contents:  - 1 2 -50 4 18  -  -  -  - 23 102  - 
Inserting... 3
Inserting... 54
Inserting... -12
Inserting... -18
Inserting... 32
Current contents: 23 1 2 3 -50  -  -  - 54 4 102  - -12  - -18  -  -  - 18  -  - 32  - 
is it empty? false
Is it full? false
Has 3? true
Obtain 3: 3
Obtain 23: 23
Deleting 3
Has 3? false
Current contents:23 1 2  * -50  -  -  - 54 4 102  - -12  - -18  -  -  - 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 forDblOpenAdrHashTableUos
Inserting... 23
Inserting... 1
Inserting... 4
Inserting... 23
Inserting... 18
Inserting... 2
Inserting... 23
Inserting... 102
Inserting... 23
Current contents: 23 1 2 23 4  - 23  -  - 23 102  -  -  -  -  -  -  - 18  -  -  -  - 
Frequency of 23? 4
Deleting 23
Frequency of 23? 3
Go first
Go forth
Delete Item
Insert 32

Search for 2: Item exists? false
Iterate through the list:
1 23 4 23 23 102 18 32 Current contents:  * 1  * 23 4  - 23  -  - 23 102  -  -  -  -  -  -  - 18  -  - 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 + -
显示快捷键?