Questions tagged as 'eficiencia'

0
answers

forEach vs. for in javascript does not come out the same

This is a JavaScript exercise that you can find on the following page: FreeCodeCamp excercise This is my code: function checkCashRegister(price, cash, cid) { debugger; var toReturn = cash - price; var cashArray = [0.01, 0....
asked by 18.08.2018 / 18:12
1
answer

Cognitive complexity in Factory class

I have a question about how to correctly create a factory class without increasing the cognitive complexity. The class consists of a static method that returns an implementation based on a name. Being a large application, there are many implemen...
asked by 08.10.2018 / 14:31
1
answer

Insert an element in a position in a C ++ 11 list

I need to insert an element within a list declared as follows: list < list <unsigned int> > bucket (16); I must insert an element into one of the bucket lists as efficiently as possible. I have the position in which I should ins...
asked by 23.10.2017 / 15:51
0
answers

Too much initial load time in Angular

How could I eliminate this long loading time? Why does it take so long to load the page that time is marked?     
asked by 20.08.2018 / 22:25
1
answer

Algorithm on dice game (two players)

The problem I want to solve is not to get a solution to the problem, but to make it more efficient , in particular, go from O (N²) to O (N) or O (N) log (N)) if possible. Context: problem raised at the university about a dice game . Basi...
asked by 19.12.2018 / 18:17