Rxd Posted December 30, 2016 Share Posted December 30, 2016 Im a retard Didn't notice that this was in the spam/off topic section >.> Apologies lads, feel free to spam Those deleted posts Quote Link to comment Share on other sites More sharing options...
Decode Posted December 30, 2016 Share Posted December 30, 2016 Those deleted posts Sorry Quote Link to comment Share on other sites More sharing options...
Explv Posted December 31, 2016 Share Posted December 31, 2016 No more spamming this thread please. Next person to post an irrelevant comment will be punished. But its in spam ? Why was this thread moved to Spam? It was originally in the Programming section. Maybe we should have a programming questions section in there if this is considered off topic? Quote Link to comment Share on other sites More sharing options...
Decode Posted December 31, 2016 Share Posted December 31, 2016 Why was this thread moved to Spam? It was originally in the Programming section. Maybe we should have a programming questions section in there if this is considered off topic? It wasn't in spam? Quote Link to comment Share on other sites More sharing options...
Explv Posted December 31, 2016 Share Posted December 31, 2016 It wasn't in spam? No Quote Link to comment Share on other sites More sharing options...
Jake Posted December 31, 2016 Share Posted December 31, 2016 Why was this thread moved to Spam? It was originally in the Programming section. Maybe we should have a programming questions section in there if this is considered off topic? I havent seen this post when it went up but it says spam when i got to it. Quote Link to comment Share on other sites More sharing options...
Explv Posted December 31, 2016 Share Posted December 31, 2016 I havent seen this post when it went up but it says spam when i got to it. I don't follow the spam section, I do follow the programming section however, which is how I saw the thread in the first place. I may be wrong but I'm pretty sure it was in programming Quote Link to comment Share on other sites More sharing options...
Jordan Posted December 31, 2016 Share Posted December 31, 2016 I don't follow the spam section, I do follow the programming section however, which is how I saw the thread in the first place. I may be wrong but I'm pretty sure it was in programming I think it was moved. OP would have gotten notification. Quote Link to comment Share on other sites More sharing options...
Qubit Posted December 31, 2016 Author Share Posted December 31, 2016 Can confirm it was moved by Alek from programming to spam Quote Link to comment Share on other sites More sharing options...
Jordan Posted December 31, 2016 Share Posted December 31, 2016 Sorry op Quote Link to comment Share on other sites More sharing options...
Swizzbeat Posted December 31, 2016 Share Posted December 31, 2016 https://gist.github.com/jaavant/5ae6f6296ce720bd43591f678fa8762e I normally don't code bash but jesus fuck this is terrible. Quote Link to comment Share on other sites More sharing options...
Qubit Posted December 31, 2016 Author Share Posted December 31, 2016 I normally don't code bash but jesus fuck this is terrible. I mean it wasn't supposed to be coded, and i tossed it together to prove the complexities. What's so bad about it? Quote Link to comment Share on other sites More sharing options...
Krys Posted December 31, 2016 Share Posted December 31, 2016 free Quote Link to comment Share on other sites More sharing options...
Swizzbeat Posted December 31, 2016 Share Posted December 31, 2016 I mean it wasn't supposed to be coded, and i tossed it together to prove the complexities. What's so bad about it? I don't think you understand what a tree data structure is. Tree's have explicit parent pointers with a set of children (which makes up each "branch"). You defined a linked list, not a tree. On top of that you explicitly defined value as an int which is just lazy considering there are easy to implement generic types. Quote Link to comment Share on other sites More sharing options...
Qubit Posted December 31, 2016 Author Share Posted December 31, 2016 (edited) I don't think you understand what a tree data structure is. Tree's have explicit parent pointers with a set of children (which makes up each "branch"). You defined a linked list, not a tree. On top of that you explicitly defined value as an int which is just lazy considering there are easy to implement generic types. I've used this data structure plenty of time to represent a binary tree. The basic data structure consisting of a value, leftChild, rightChild is commonly used amongst programmers. So you are complaining about that? Secondly, i don't know if you could tell but this was an algorithm specific question, not a java one. My attempt was not to use language specifics, such that the algorithm was less dependent on a specific language. I mean if you just look at the problem, why would I go overkill and add generics if all the values at a node are ints.. Would you like me to check if the returning value was affected my overflow too ? Edited December 31, 2016 by Qubit Quote Link to comment Share on other sites More sharing options...