All Questions

2
answers

Questions related to recursion

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);...
asked on 18.11.2015 / 22:38
2
answers

Functions of cast or direct cast. What is the best option?

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...
asked on 18.08.2016 / 16:19
1
answer

SQL count and sum

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 | +-----+-----+...
asked on 27.06.2016 / 18:35
1
answer

Is it correct to declare GET / SET methods within a STRATEGY class?

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:...
asked on 04.12.2015 / 17:20
3
answers

How to check if my current time is in a time interval?

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 ?     
asked on 16.11.2015 / 05:52
3
answers

Remove element from a list by key and by value

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?     
asked on 21.06.2016 / 12:01
2
answers

Insert image in body of email

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?     
asked on 08.12.2015 / 19:32
2
answers

Array diagonal in java

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;...
asked on 22.11.2015 / 23:06
2
answers

List years in JCombobox dynamically from given rule

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)...
asked on 16.12.2015 / 12:01
1
answer

I can not remove a reference installed by NuGet

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...
asked on 01.12.2015 / 17:54