Good afternoon. I'm developing recursive methods that work on a binary search tree, but I'm having a hard time recursion.
For example, the method below should return the height of the tree:
public int altura(){
return altura(root,0);...
In PHP, I realize that it is possible to do some things in a number of ways.
One of those that comes to my attention is the functions and functionalities related to type conversion. You can use both the type keyword and use functions.
For...
I have 6 SQL codes and all search the same table, it looks like this:
+-----+-----+-----+
| A | B | C |
+-----+-----+-----+
| 1 | 1 | 1 |
+-----+-----+-----+
| 2 | 1 | 5 |
+-----+-----+-----+
| 3 | 2 | 3 |
+-----+-----+...
I was left with a question when I created a design pattern of type Strategy . Is it correct to declare methods GET and SET in a class that implements a Strategy interface? I do not know if I was very clear, follow the example:...
I'd like to know if my current schedule is in an hour range.
$hora1 = "08:25:00";
$hora2 = "12:25:00";
$horaAtual = date('h:i:s');
How do I know if $horaAtual is between $hora1 and $hora2 ?
I have the following list
my_list = [1,2,3,4,5,6,7,8,9]
Let's say I want to remove num 7, by value and / or key, and stick with:
my_list = [1,2,3,4,5,6,8,9]
How do I do it?
How do I insert an image into the body of the email using C #? I have already been able to send as an attachment but I would like to know how to proceed to send it in the body of the email, is there anything that makes this possible?
Firstly, I would like to inform you that I am new here on the site, and if by chance my question was left uninformed or poorly organized please speak.
I was trying to solve this question:
Iwasabletodevelopthiscode:importjava.util.Scanner;...
I have an application that lists records in a JTable , and each record has a record date using Date .
In this list, I put a filter per year via JCombobox , where the initial year is what the application started to use (2013)...
I installed DLL Log4net with nuget . As it is in a different version of ours and a colleague gave me the usual one, I deleted it from the folder and put the current one. When I validate the solution / project, the version that wa...