Back to General discussions forum
For example, task #70 "Most frequent word" is dependent on task #72 "Funny words generator", but task #72 follows later in the list.
Nothing terribly bad, but I would like to solve dependencies first, then solve tasks that require these dependencies.
Program for task #72 "Funny words generator" works in a blink of eye, but for #70 "Most frequent word" takes around 20 seconds... does that mean my algorithm is too ineffective?
Both programs are in Python.
Cannot comment on your code (since it's not uploaded), but one would expect that generating 1M words would take longer than generating twenty. But, yes, 20 seconds sounds a bit on the long side. My code runs in under 4s on thirteen-year-old hardware.
Okay, understood! Will think on improvements. Maybe store seed values instead of actual words...