Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

/in/dictionary.c:152:32: runtime error: member access within null pointer of type 'struct dictionary_node_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/dictionary.c:152:32 in 
/in/dictionary.c:138:32: runtime error: member access within null pointer of type 'struct dictionary_node_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/dictionary.c:138:32 in 

Your Answer

0
***Print Dictionary***
Original: {1:5, }.
Reversed: {1:5, }.
****Print Finished****
1
***Print Dictionary***
Original: {0:6, 1:5, }.
Reversed: {1:5, 0:6, }.
****Print Finished****
2
***Print Dictionary***
Original: {0:6, 1:5, 3:4, }.
Reversed: {3:4, 1:5, 0:6, }.
****Print Finished****
3
***Print Dictionary***
Original: {0:6, 1:5, 2:8, 3:4, }.
Reversed: {3:4, 2:8, 1:5, 0:6, }.
****Print Finished****
4
The value is 4.
***Print Dictionary***
Original: {0:6, 1:5, 2:8, 3:4, }.
Reversed: {3:4, 2:8, 1:5, 0:6, }.
****Print Finished****

JOJ Answer

0
***Print Dictionary***
Original: {1:5, }.
Reversed: {1:5, }.
****Print Finished****
1
***Print Dictionary***
Original: {0:6, 1:5, }.
Reversed: {1:5, 0:6, }.
****Print Finished****
2
***Print Dictionary***
Original: {0:6, 1:5, 3:4, }.
Reversed: {3:4, 1:5, 0:6, }.
****Print Finished****
3
***Print Dictionary***
Original: {0:6, 1:5, 2:8, 3:4, }.
Reversed: {3:4, 2:8, 1:5, 0:6, }.
****Print Finished****
4
The value is 4.
***Print Dictionary***
Original: {0:6, 1:5, 2:8, 3:4, }.
Reversed: {3:4, 2:8, 1:5, 0:6, }.
****Print Finished****