id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

srp4379@lausd.net quiz > sumsEqual4
prev  |  next  |  chance

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)

boolean sumsEqual4(int[] nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy