No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi. i made a function which is supposed to create a binary tree from preorder and inorder traversals using recursion. i did this by making arrays for the left subtree and the right subtree in preorder and in inorder at each call of the function. makeNode() puts the data into … |
|
hi, i'm currently learning C on my own. i explicitly made a binary tree just to see if my postorder procedure works. i have no idea why but at the end of running the program, before it does the last procedure, this appears: [IMG]http://i56.tinypic.com/2nb52xx.jpg[/IMG] everything else works fine. i know … |
|
Hi... I've been trying to edit and rewrite my code for quite a while now but no matter what I do the program only ever reads the last instance of a class that I declare. For example, [CODE]Fraction ni = new Fraction(3,4); System.out.println(Fraction.lcd(ni,new Fraction(3,2)));[/CODE] > This code is supposed to … |
|
I'm trying to read a file which contains: Dante Beatrice 3 5 and put them into an array. Then I will assign the values of each member of the array to static variables. when i run the main class of my project, it throws a NullPointerException starting from the line … |