Posts by IWHKYB • 241 points
4 posts
-
0
votes3
answers240
viewsA: Randomly choose files in Nodejs
I put here as an answer to make reading easier To see the list of files in the folder you can use Fs.readdir.: const folder = './foldername/'; const fs = require('fs'); const files_arr;…
-
1
votes1
answer92
viewsA: Dynamic Vector + Dynamic Allocation
If I understand what you want to do right, I suggest using struct. It would look something like this: struct meuVetorDinamico { char estado[20]; float tempoEstado; float tempoTotal; }…
-
13
votes4
answers3410
viewsA: What is dynamic programming?
"Many efficient algorithms follow the dynamic programming paradigm. This paradigm, or algorithm design strategy, is a kind of intelligent iterative translation of recursion and can be loosely…
-
0
votes2
answers190
viewsA: simpels problem with Vector and Structs
As stated above, the mode of assignment variável = [valores], in C, may only be used in the variable declaration. Another important point is that even if you hadn’t used {} and yes [] And the…