Data structure (Python)
PUT 1 (0.0/5.0)
Description : This is the same test as in PDF Examples
Input:
put(‘str0’, 100)
0: SLL []
1: SLL [(str0: 0)]
2: SLL []
3: SLL []
4: SLL []
5: SLL []
6: SLL []
7: SLL []
8: SLL []
9: SLL []
10: SLL []
11: SLL []
12: SLL []
13: SLL []
14: SLL []
15: SLL []
16: SLL []
17: SLL []
18: SLL []
19: SLL []
20: SLL []
21: SLL []
22: SLL []
23: SLL []
24: SLL []
25: SLL []
26: SLL []
27: SLL []
28: SLL []
29: SLL []
30: SLL []
31: SLL []
32: SLL []
33: SLL []
34: SLL []
35: SLL []
36: SLL []
37: SLL []
38: SLL []
39: SLL []
Expected:
Return value: None
capacity 40, size 1
0: SLL []
1: SLL [(str0: 100)]
2: SLL []
3: SLL []
4: SLL []
5: SLL []
6: SLL []
7: SLL []
8: SLL []
9: SLL []
10: SLL []
11: SLL []
12: SLL []
13: SLL []
14: SLL []
15: SLL []
16: SLL []
17: SLL []
18: SLL []
19: SLL []
20: SLL []
21: SLL []
22: SLL []
23: SLL []
24: SLL []
25: SLL []
26: SLL []
27: SLL []
28: SLL []
29: SLL []
30: SLL []
31: SLL []
32: SLL []
33: SLL []
34: SLL []
35: SLL []
36: SLL []
37: SLL []
38: SLL []
39: SLL []
Student:
Return value: None
HashMap has the wrong size
capacity 40, size 2
0: SLL []
1: SLL [(str0: 100)]
2: SLL []
3: SLL []
4: SLL []
5: SLL []
6: SLL []
7: SLL []
8: SLL []
9: SLL []
10: SLL []
11: SLL []
12: SLL []
13: SLL []
14: SLL []
15: SLL []
16: SLL []
17: SLL []
18: SLL []
19: SLL []
20: SLL []
21: SLL []
22: SLL []
23: SLL []
24: SLL []
25: SLL []
26: SLL []
27: SLL []
28: SLL []
29: SLL []
30: SLL []
31: SLL []
32: SLL []
33: SLL []
34: SLL []
35: SLL []
36: SLL []
37: SLL []
38: SLL []
39: SLL []
Test Failed: False is not true
PUT 2 (0.0/5.0)
Description : Testing with random values
Input:
put(‘key768’, -519)
0: SLL []
1: SLL [(key882: 936) -> (key79: 175)]
2: SLL []
3: SLL []
4: SLL [(key768: 188) -> (key416: -738)]
5: SLL []
6: SLL [(key193: -337)]
7: SLL []
8: SLL []
9: SLL []
Expected:
Return value: None
capacity 10, size 5
0: SLL []
1: SLL [(key882: 936) -> (key79: 175)]
2: SLL []
3: SLL []
4: SLL [(key768: -519) -> (key416: -738)]
5: SLL []
6: SLL [(key193: -337)]
7: SLL []
8: SLL []
9: SLL []
Student:
Return value: None
HashMap has the wrong size
capacity 10, size 6
0: SLL []
1: SLL [(key882: 936) -> (key79: 175)]
2: SLL []
3: SLL []
4: SLL [(key768: -519) -> (key416: -738)]
5: SLL []
6: SLL [(key193: -337)]
7: SLL []
8: SLL []
9: SLL []
Test Failed: False is not true
Applied Sciences
Architecture and Design
Biology
Business & Finance
Chemistry
Computer Science
Geography
Geology
Education
Engineering
English
Environmental science
Spanish
Government
History
Human Resource Management
Information Systems
Law
Literature
Mathematics
Nursing
Physics
Political Science
Psychology
Reading
Science
Social Science
Home
Homework Answers
Blog
Archive
Tags
Reviews
Contact
twitterfacebook
Copyright © 2021 SweetStudy.comSWEETSTUDY.COM YOUR HOMEWORK ANSWERS
chat0
Home.Literature.
Help.
Log in / Sign up
Data structure (Python)
profile
Trist1111
PUT.docx
Home>Computer Science homework help>Data structure (Python)
PUT 1 (0.0/5.0)
Description : This is the same test as in PDF Examples
Input:
put(‘str0’, 100)
0: SLL []
1: SLL [(str0: 0)]
2: SLL []
3: SLL []
4: SLL []
5: SLL []
6: SLL []
7: SLL []
8: SLL []
9: SLL []
10: SLL []
11: SLL []
12: SLL []
13: SLL []
14: SLL []
15: SLL []
16: SLL []
17: SLL []
18: SLL []
19: SLL []
20: SLL []
21: SLL []
22: SLL []
23: SLL []
24: SLL []
25: SLL []
26: SLL []
27: SLL []
28: SLL []
29: SLL []
30: SLL []
31: SLL []
32: SLL []
33: SLL []
34: SLL []
35: SLL []
36: SLL []
37: SLL []
38: SLL []
39: SLL []
Expected:
Return value: None
capacity 40, size 1
0: SLL []
1: SLL [(str0: 100)]
2: SLL []
3: SLL []
4: SLL []
5: SLL []
6: SLL []
7: SLL []
8: SLL []
9: SLL []
10: SLL []
11: SLL []
12: SLL []
13: SLL []
14: SLL []
15: SLL []
16: SLL []
17: SLL []
18: SLL []
19: SLL []
20: SLL []
21: SLL []
22: SLL []
23: SLL []
24: SLL []
25: SLL []
26: SLL []
27: SLL []
28: SLL []
29: SLL []
30: SLL []
31: SLL []
32: SLL []
33: SLL []
34: SLL []
35: SLL []
36: SLL []
37: SLL []
38: SLL []
39: SLL []
Student:
Return value: None
HashMap has the wrong size
capacity 40, size 2
0: SLL []
1: SLL [(str0: 100)]
2: SLL []
3: SLL []
4: SLL []
5: SLL []
6: SLL []
7: SLL []
8: SLL []
9: SLL []
10: SLL []
11: SLL []
12: SLL []
13: SLL []
14: SLL []
15: SLL []
16: SLL []
17: SLL []
18: SLL []
19: SLL []
20: SLL []
21: SLL []
22: SLL []
23: SLL []
24: SLL []
25: SLL []
26: SLL []
27: SLL []
28: SLL []
29: SLL []
30: SLL []
31: SLL []
32: SLL []
33: SLL []
34: SLL []
35: SLL []
36: SLL []
37: SLL []
38: SLL []
39: SLL []
Test Failed: False is not true
PUT 2 (0.0/5.0)
Description : Testing with random values
Input:
put(‘key768’, -519)
0: SLL []
1: SLL [(key882: 936) -> (key79: 175)]
2: SLL []
3: SLL []
4: SLL [(key768: 188) -> (key416: -738)]
5: SLL []
6: SLL [(key193: -337)]
7: SLL []
8: SLL []
9: SLL []
Expected:
Return value: None
capacity 10, size 5
0: SLL []
1: SLL [(key882: 936) -> (key79: 175)]
2: SLL []
3: SLL []
4: SLL [(key768: -519) -> (key416: -738)]
5: SLL []
6: SLL [(key193: -337)]
7: SLL []
8: SLL []
9: SLL []
Student:
Return value: None
HashMap has the wrong size
capacity 10, size 6
0: SLL []
1: SLL [(key882: 936) -> (key79: 175)]
2: SLL []
3: SLL []
4: SLL [(key768: -519) -> (key416: -738)]
5: SLL []
6: SLL [(key193: -337)]
7: SLL []
8: SLL []
9: SLL []
Test Failed: False is not true
Applied Sciences
Architecture and Design
Biology
Business & Finance
Chemistry
Computer Science
Geography
Geology
Education
Engineering
English
Environmental science
Spanish
Government
History
Human Resource Management
Information Systems
Law
Literature
Mathematics
Nursing
Physics
Political Science
Psychology
Reading
Science
Social Science
Home
Homework Answers
Blog
Archive
Tags
Reviews
Contact
twitterfacebook
Copyright © 2021 SweetStudy.com
Recent Comments