Assignment 1 - Part 1
SFU ID: kazizi
Github username: kazizi-dev
Line and file: lines 13 and 22 in attached log file
Question: I was wondering if the memory leak summary
in lines 21and 59 in the attached log file are related to my code or is
the memory leak as a result of acutest.h file?
Additional info:
Please see the attached log file from the result of this command:
$ valgrind --leak-check=full --show-leak-kinds=all ./arraylist.bin
Line 21: ==2089== by 0x10956F: arraylist_add (arraylist.c:27)
- At
arraylist.c:27, I'm using realloc().
Line 49: ==2090== by 0x109610: arraylist_insert (arraylist.c:44)
- At
arraylist.c:44, I'm using memmove().
Assignment 1 - Part 2
Line and file: lines 59, tree.c
Expected behavior: build tree
Observed behavior: build tree
Question: I
have added a helper function to avoid using pre_right parameter because
I found pre_left to be enough to implement the algorithm. The test
cases all pass, is this acceptable?