Posts by Antonio Lopes • 59 points
5 posts
-
2
votes1
answer36
viewsQ: Function looking for a node that satisfies a callback
I found an implementation of lists linked in javascript and saw this method that returns the first node that satisfies the callback condition and did not understand very well the first if, I…
javascriptasked Antonio Lopes 59 -
0
votes1
answer47
viewsQ: Adjust vector post element removal
So, imagine that there is already a function that registers students and there is this struct of students below and a variable that counts how many registered students we have and the constant that…
casked Antonio Lopes 59 -
3
votes2
answers170
viewsQ: What is the difference between these uses of the setTimeout() function?
What’s the difference between using the setTimeout() thus setTimeout(()=>this.logicaRotacao(), 3000) and so? setTimeout(this.logicaRotacao(), 3000)…
-
0
votes1
answer1662
viewsQ: Vector union in the language C
Question: Make a program that reads two vectors of 10 elements. Create a vector that is the union between the two previous vectors, i.e., that contains the numbers of the two vectors. It should not…
casked Antonio Lopes 59 -
0
votes1
answer47
viewsQ: Why is this algorithm in C returning wrong values?
#include <stdio.h> #include <stdlib.h> /* Desenvolva um algoritmo que leia 2 vetores de 10 elementos inteiros cada. Em seguida, calcule a soma desses vetores, guarde o resultado em um…
casked Antonio Lopes 59