Skip to main content

Timeline for Generic Binary Tree

Current License: CC BY-SA 4.0

22 events
when toggle format what by license comment
Jul 19, 2018 at 5:39 comment added Mast Please do not update the code in your question to incorporate feedback from answers, doing so goes against the Question + Answer style of Code Review. This is not a forum where you should keep the most updated version in your question. Please see what you may and may not do after receiving answers. Feel free to post a follow-up question instead.
Jul 19, 2018 at 5:38 history rollback Mast
Rollback to Revision 4
Jul 19, 2018 at 2:41 history edited Snorrlaxxx CC BY-SA 4.0
added 6653 characters in body
Jul 10, 2018 at 2:52 vote accept Snorrlaxxx
Jul 9, 2018 at 21:42 answer added bobah timeline score: 3
Jul 9, 2018 at 18:44 comment added hoffmale @tinstaafl: Actually, it does compile, but only because those member functions who use swap aren't instantiated (because... templates). Adding auto obj2 = std::move(obj); to main will fix that, though (i.e. it won't compile anymore).
Jul 9, 2018 at 14:42 comment added user33306 This code won't compile as is. the BinaryTree<T>::swap function isn't implemented, but is referenced several times.
Jul 9, 2018 at 8:36 comment added Vogel612 @Snorrlaxxx for the record: IME reviewers prefer to be informed of your reasoning for disregarding their advice. This allows them to adjust their reviews and may teach them something new. It also makes it significantly less annoying to find the same issues over and over :)
Jul 9, 2018 at 4:46 comment added Incomputable @Snorrlaxxx, I believe this is binary search tree, not binary tree. Binary search tree has the properties of being ordered if traversed in-order. Or was that title already used? :)
Jul 9, 2018 at 3:53 history edited hoffmale CC BY-SA 4.0
edited tags; edited title
Jul 9, 2018 at 3:49 answer added hoffmale timeline score: 10
Jul 9, 2018 at 2:27 comment added hoffmale Change the order of insertion, and you will get different results (e.g. 8, 10, 4, 2, 6 should give different results for all traversals)
Jul 9, 2018 at 2:24 history edited Snorrlaxxx CC BY-SA 4.0
edited title
Jul 9, 2018 at 2:20 comment added Snorrlaxxx @hoffmale That is odd, I was following the same idea from what I have seen from books and what I found online.
Jul 9, 2018 at 2:00 comment added hoffmale I know why printInorder and printPostorder print the same stuff: Your input basically builds one singly linked list (only left nodes are ever used): 10 -> 8 -> 6 -> 4 -> 2
Jul 9, 2018 at 1:24 comment added Snorrlaxxx @πάνταῥεῖ For perhaps like 20% of the time I have chose to not go with a particular recommendation but I do make most of the changes the answers suggest to do. Which is why I get positive feedback that I am "improving" and to "keep it up".
Jul 9, 2018 at 0:35 comment added πάντα ῥεῖ @Snorrlaxxx It seems you get the same answers and recommendations over and over, while you are varying over data structures.
Jul 8, 2018 at 23:55 history edited Snorrlaxxx CC BY-SA 4.0
added 20 characters in body
Jul 8, 2018 at 23:53 comment added Snorrlaxxx @JDługosz Okay, I have followed the advice given in all of my posts I have made on here. I am surprised by your comment as you have been very encouraging in the past on my other posts.
Jul 8, 2018 at 23:47 comment added πάντα ῥεῖ @JDługosz Wanna chat?
Jul 8, 2018 at 23:37 comment added JDługosz You can start by following the advice in the answers you have received on earlier posts. I'm not going to list them all again, and I see half a dozen at first glance.
Jul 8, 2018 at 23:32 history asked Snorrlaxxx CC BY-SA 4.0