3
votes
Accepted
Simplify wordle logic Swift
The logic itself looks good to me, but the readability of the program can be improved:
Put the logic to compute the response for some guess into a function and separate it from the I/O. That ...
2
votes
Add padding to top and bottom of cells
First of all I would replace this
With rng.Rows
.WrapText = False
.AutoFit
.WrapText = True
.AutoFit
End With
with just this
...
2
votes
Multi-threaded Mandelbrot set generator slower than single thread
Distributing the work among threads
D. Jurcau already mentioned that you are not distributing your work correctly. It's even worse than his terse answer hints at. One issue is that inside the lambda ...
2
votes
Accepted
Generate readable English words from given letters
Algorithm
The problem here is that your algorithm isn't scalable. For any given n-letter word, prob_words() generates n! candidate words. That's 40320 candidates ...
1
vote
Performance with large data sets in pandas
Consider revamping your current setup to work mostly in Pandas methods that operates on whole DataFrames and Series objects as opposed to mostly built-in Python methods on scalar values that loop and ...
1
vote
Performance with large data sets in pandas
Things that are good to stay in Spanish: your starting input file, your final output file. Everything else - your variable names, function names, comments, parameter names, and the column names of ...
1
vote
Multi-threaded Mandelbrot set generator slower than single thread
You don't distribute work among your threads correctly. According to your code, only by the time a thread has completed its work is the start point for the next thread(s) updated.
1
vote
Sum up nested array of objects based on keys
I'm going to make an up-front assumption that many of the truthy checks you're doing (e.g. ... || 0) is simply to check if a value is undefined or not, and you don'...
1
vote
Accepted
Sum up nested array of objects based on keys
You are returning a new object in each iteration inside the reducers, when you could use just one object for the tallies (see below). The handling of undefined values suggest to me that the underlying ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
performance × 8788python × 2187
java × 1279
c++ × 997
algorithm × 965
c# × 866
javascript × 839
programming-challenge × 630
python-3.x × 598
beginner × 590
c × 508
strings × 359
array × 314
php × 307
excel × 271
vba × 266
sql × 263
numpy × 224
jquery × 212
primes × 204
python-2.x × 181
image × 177
matrix × 175
multithreading × 168
mysql × 159