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

 

norm.krumpe@muohio.edu program11 > pair10
prev  |  next  |  chance

Given an array of integers, return true if the array contains two side-by-side values whose sum is a multple of 10, and false otherwise. All integers will be positive.


pair10([13, 7]) → true
pair10([2, 11, 8, 9]) → false
pair10([10, 5, 10, 5, 10, 5]) → false

...Save, Compile, Run (ctrl-enter)

boolean pair10(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: 200

Copyright Nick Parlante 2017 - privacy