Want to save binary tree to disk for “20 questions” game

后端 未结 8 2032

In short, I\'d like to learn/develop an elegant method to save a binary tree to disk (a general tree, not necessarily a BST). Here is the description of my problem:

I\'

8条回答
  •  爱一瞬间的悲伤
    2021-02-06 15:35

    In java if you were to make a class serializeable you can just write the class object to disc and read it back using input/output streams.

提交回复
热议问题