Posts by Carlos • 119 points
5 posts
-
5
votes2
answers202
viewsQ: Is there a difference between a perfect binary tree and a balanced binary tree?
How can I understand a balanced binary tree and a perfect binary tree?
terminologyasked Carlos 119 -
-3
votes1
answer35
viewsQ: Generate and delete rows from a table with Jquery
I made a function that generates lines in a table but I’m not able to delete them. Could someone tell me how I can add and remove every time I click the buttons? Function generating the lines var i…
-
-1
votes1
answer69
viewsQ: How to check if one variable is INT and the other is a String?
I’m new to Java and I’m trying to make a game... I need to verify that the two data inputs are int and string. "value1" has to be integer and "value2" has to be a string. Can you tell me if the…
javascriptasked Carlos 119 -
-2
votes1
answer74
viewsQ: Does connecting to a java database have to be by a main class only?
To make a connection to the java database, I only have to do it through a main class or I can do it through another class?? public class ConexaoBasica { public static void main(String[] args) throws…
-
7
votes3
answers1161
viewsQ: Hanoi Tower - How does this recursive solution work?
Could someone explain to me the logic of this recursive function? I’m not getting the idea from if down. The code solves the problem of the Tower of Hanoi: def toweOFhanoi(disc,ori,dest,aux): if…