3
votes
Accepted
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 (...
1
vote
Accepted
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
array × 2115java × 499
javascript × 402
performance × 325
algorithm × 250
php × 220
c++ × 216
python × 202
beginner × 180
c × 180
c# × 167
strings × 124
programming-challenge × 105
sorting × 101
object-oriented × 67
vba × 56
ruby × 52
interview-questions × 50
numpy × 44
excel × 41
recursion × 41
hash-map × 41
ecmascript-6 × 41
python-3.x × 39
complexity × 36