Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • If you can describe the positions of the numbers to edit as parts of the tree, writing a your-favorite-lisp program to do this would both be easy and more robust. Commented Jul 8, 2021 at 22:52
  • The most important part of your question is what the value of those ...s are because the right answer will depend on whether your input file ends with ) alone or )\n or ends in something else. So please replace the ...s with representative values as they appear in your real input file and if there is no newline at the end then tell us that. Commented Jul 9, 2021 at 12:04