由于题中的Node的构造器其中无参和有一个参数的构造器中,关于List<Node> children可能会存在空,所以当List为空时encode的递归方法会存在空指针的问题;同理decode的递归也会存在本来是null的children被赋值为非null的空ArrayListpull/6/head
parent
3278552cab
commit
edcfebc814
Loading…
Reference in new issue