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 ...
user avatar
  • 22.2k
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 ...
user avatar
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 ...
user avatar
  • 32.3k
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 ...
user avatar
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 ...
user avatar
  • 790
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 ...
user avatar
  • 47.9k
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.
user avatar
  • 2,975
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'...
user avatar
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 ...
user avatar
  • 600

Only top scored, non community-wiki answers of a minimum length are eligible