New answers tagged

2 votes
Accepted

make html table in sync with javascript array

Personally I would break the code down into discrete functions that do specific peices of work. I would opt to use the users object graph as the 'source of truth' ...
user avatar
-1 votes

Longest Palindromic Substring | Python Code Giving TLE

The max function adaption using a lambda that is defined at each use is unneeded complexity; you could do the same with a simple ...
user avatar
  • 289
1 vote

Coin partitions

The readability is fine. If you cut out the documentation it's about 15 lines long, and short is almost always readable. Replace coins.sort with ...
user avatar
2 votes

An iterator returning all possible solutions to n-queen problem in Java - follow-up

I find nothing worth mentioning about QueensIterable but the visibility of final int dimension, kept for its iterators: ...
user avatar
  • 4,528

Top 50 recent answers are included