Need direction about Binary Search Tree implementation in Objective-C
问题 I have a partial implementation of a binary tree that doesn't work properly. I believe I am missing fundamental knowledge about struct memory management in objective-c but not sure what it is(besides malloc). When I try to create a new tree node based on a struct I get Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) which led me to believe I didn't create a memory location for this struct pointer. What is the proper way of doing this in Objective-C? (Code in below) Thank you for taking the