Questions tagged as 'algoritmo'

1
answer

What is a reference location?

There are several answers here that talk about reference location, but do not explain what it is. Where is it applied? And why is it so important for data structures and algorithms?     
asked by 04.01.2019 / 12:52
1
answer

Show students' grade in C

I wanted to display the students note when I typed all the notes, in an array of 10 positions, I tried out of for, but it returns me only the last one. #include <stdio.h> #include <stdlib.h> int main() { int notas[10]; int...
asked by 16.05.2015 / 21:40
3
answers

Function that writes the first 50 numbers whose sum of digits is 10

I have a question, I need to make a function in JavaScript that shows the 50 numbers that the sum of their digits equals 10, eg: Number 19, digits 1 and 9, sum of digits: 1 + 9 = 10. The function should show me the number 19, showing a total...
asked by 20.05.2014 / 20:05
1
answer

How does an automatic categorization algorithm work?

I have this doubt. I've noticed on sites like Yahoo Answers that there is a recognition of the semantics of the questions and they are categorized automatically. Of course, there are bugs, but it is very effective most of the time. Which m...
asked by 21.03.2017 / 16:39
2
answers

Algorithm for (A + Bi) ^ n

I need to do a program that gives the formula: A + B * i ^ n You have to find the smallest value of n to be a real number Since A and B are inputs and i is part of the complex numbers. I have an outline: #include <stdio.h> #include...
asked by 01.04.2015 / 21:05
3
answers

This Javascript loop is dropping my browser. Any idea why?

I'm solving the following coderbyte.com challenge:    Using the JavaScript language, have the function RunLength (str) take   the str parameter being passed and return to the compressed version of the   string using the Run-length encoding al...
asked by 22.06.2015 / 20:36
3
answers

Step-by-step operation of the binary search algorithm

I'm trying to solve the following problem:    Create a graphical representation, illustrating ALL steps (where the beginning, middle, and end are) of the search for the 57 element from the following list:       12,13,15,19,24,28,39,57,59,...
asked by 30.09.2014 / 17:22
3
answers

What defines good logic?

I was thinking about some code issues that I changed and I remembered what my developer android teacher talked and did: "Good logic has few lines of code." I asked some people who told me that it depends. But depends on what? Of course th...
asked by 01.07.2014 / 03:55
4
answers

Repeat the alphabet similar to the excel columns

I'm creating a function that returns the alphabet in an array according to the size of passed columns. At first I was only looping using the range ("A", "Z"); but when I had more than 26 columns I did not answer any more, what I found was a...
asked by 30.10.2015 / 19:22
3
answers

Doubts binary search

Based on the principle that binary search only works with array of ordered integers , if I have to fetch an integer from an ordered vector the search speed would be much more faster than a sequential search, but my question is, if my vector i...
asked by 26.03.2014 / 18:11