Binary Tree in Objective-C

前端 未结 4 1848
一向
一向 2021-01-31 00:22

I am learning algorithms and data structures and to train I am trying to design and implement a binary tree using objective-c.

So far I have the following Classes:

4条回答
  •  暖寄归人
    2021-01-31 00:57

    Your code, in my opinion, has a lot of logic errors. Maybe consider reviewing what a pointer-to-pointer is to insure you're designing the desired effect. Likewise, you need to dereference node/root to access them in normal state. Otherwise, the error is valid, Node** is not type of structure or union.

提交回复
热议问题