Posts by noobmaster96 • 63 points
1 post
-
6
votes2
answers89
viewsQ: Problem with DRY
The problem: compare two arrays and give a dot whenever a number of one array is larger than the other. Ex) A = [1, 2, 2] B = [2, 1, 1] result = [2, 1] The answer I found: function a($a, $b){ $a1 =…