Questions tagged as 'algoritmo'

1
answer

Matrix with strings in Visualg

I'm having difficulty with the following question:    Create an M matrix [21,10]. Read 10 names (maximum 20 characters) and store in the first row of the array. After reading, decompose the names letter by letter and store them in the other l...
asked by 23.05.2017 / 21:19
3
answers

Error in indexes of an array

I'm trying to make a selection sort algorithm, just to train algorithms myself, to my see my logic is right about sorting, but it's returning me an error I do not understand. > Code: import java.util.Scanner; import java.util.Arrays; publ...
asked by 27.12.2018 / 18:21
1
answer

Text Translation Algorithm

I'm a beginner in JS I've already studied up to the loops section, so I stopped by to review everything I saw and do some exercises. I have made an algorithm that translates into English, Spanish and Portuguese a table with the tide schedul...
asked by 03.10.2014 / 00:40
2
answers

DataFrame Pandas - Calculate column based on other

I have a dataframe in the following format: colunas = [ 'COMEDY', 'CRIME', 'Classe Prevista' ] precisao_df = pd.DataFrame(columns=colunas) precisao_df['COMEDY'] = y_pred_proba[:,0] precisao_df['CRIME'] = y_pred_proba[:,1] precisao...
asked by 31.10.2018 / 05:31
1
answer

How to make an algorithm to convert case to lowercase?

I need an algorithm that accepts a string or literal expression in uppercase or uppercase or lowercase. Example: leia(nome) Regardless of the entry:    So-and-so, FANO, so-and-so, or FULANO The output of the code escreva(nome)...
asked by 24.10.2014 / 17:40
1
answer

Join three similar codes in one

I'm working with a table that shows the number of places offered, candidates who are enrolled and those who enter higher courses. I want to make a program that allows the visualization of this data from the user's input (let's say he wants to kn...
asked by 09.01.2018 / 04:35
2
answers

Generate NFe Key

I have closed source software that validates the NFe key in the invoice entry for the stock module. I need to generate some NFe keys for testing. So far, I know that the NFe key validates the provider's IBGE code, document number, and Note...
asked by 19.09.2017 / 15:06
1
answer

Function to check if all elements of an array of variables are null

Suppose I have an array where each element of this array is a variable that stores a string inside it. Example: error{ [nome] : null; [sobrenome] : "sobrenome inválido"; [estado] : null; } I would like the program to ident...
asked by 28.09.2018 / 15:52
1
answer

Stable vs. unstable ordering

What defines a stable sort algorithm? In this question I've been told a bit about stable and unstable ordering, but I still do not see the advantage of using an unstable one. In what cases can we use unstable ordering? Is it always prefe...
asked by 26.08.2018 / 23:01
2
answers

Column difference and sum DATETIME [closed]

I have a table named chamado_processos with the following structure and data As you can see one of the columns in this table called dt_processo is a DATETIME field and the tp_processo column defines whether the...
asked by 10.10.2016 / 14:35