about | help | code help+videos | done | prefs |
boolean sumsEqual4(int[] nums). Given an array of ints with 4 elements, return true if the sum of the first two elements equals the sum of the last two elements. sumsEqual4([1, 4, 3, 2]) → true sumsEqual4([1, 2, 3, 4]) → false sumsEqual4([10, -10, 0, 0]) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy