Hot answers tagged

3 votes

JS animated string builder

Most of the variable names are badly chosen. buildString doesn't really express what it does. name doesn't match its use (...
RoToRa's user avatar
  • 10.9k
1 vote

Given an array, remove zero or more elements to maximize the reduction where you add odd values and subtract even values

You could simply use this pattern: [greatest value, smallest value, greatest value, smallest value, ...] local maximum, local minimum, ... That means, go until ...
Nina Scholz's user avatar

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