about | help | code help+videos | done | prefs |
public boolean sumAEqualsSumB_2(int[] a, int[] b)
public boolean sumAEqualsSumB_2(int[] a, int[] b) { boolean equals = false; int sumA = a[0] + a[1]; int sumB = b[0] + b[1]; if (sumA == sumB) { equals = true; } return equals; } sumAEqualsSumB_2([3, 0], [2, 1]) → true sumAEqualsSumB_2([30, 20], [40, 10]) → true sumAEqualsSumB_2([2, 5], [5, 3]) → false ...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: 1
Copyright Nick Parlante 2017 - privacy