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

 

amjadm@miamioh.edu > sameMiddle
prev  |  next  |  chance

Given 3 arrays of ints with different odd lengths, return true if all 3 have the same element in the middle. Otherwise, it returns false.


sameMiddle([1], [1, 2, 3], [3]) → false
sameMiddle([1], [1], [1]) → true
sameMiddle([1, 2, 3], [2], [1, 1, 2, 1, 1]) → true

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

public boolean sameMiddle(int[] arr1, int[] arr2, int[] arr3) { }

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

Copyright Nick Parlante 2017 - privacy