| about | help | code help+videos | done | prefs | 
norm.krumpe@muohio.edu arrays
Description:Array homework
A note about methods that return an array: There are some problems in here where the method needs to return an array. When you do this, your return statement should just return the name of the array variable (no square brackets after it...just the variable name).
 swapEnds
swapEnds   fix23
fix23   frontPiece
frontPiece   makeMiddle
makeMiddle  
 insertSum
insertSum   unlucky1
unlucky1   rotateLeft3
rotateLeft3   no23
no23   
Array problems requiring one or more loops:
NOTE: CodingBat is a bad place to debug. If you want to debug, write your methods in jGRASP, and use the debugger to debug them. Then, switch back to CodingBat. In jGRASP, make your methods static, then you can debug by calling your methods from the main() method.
 max
max   maxBelow50
maxBelow50   countEvens
countEvens   contains
contains   isAbsent
isAbsent   countRaises
countRaises   first6
first6 
 runningTotal
runningTotal   reverseArray
reverseArray   hasSymmetry
hasSymmetry   connectFour
connectFour   buildArray
buildArray   only14
only14   resize
resize 
 sameParity
sameParity   no14
no14   tenRun
tenRun   isEverywhere
isEverywhere   has22
has22   appendToEnd
appendToEnd   appendStart
appendStart   showEvens
showEvens 
 catFriendly
catFriendly   sumNo5
sumNo5   inAbcOrder H
inAbcOrder H    secondIndexOf
secondIndexOf   sumArrays
sumArrays   pre4
pre4   loseThe2
loseThe2 
 bumpTheNines
bumpTheNines   allButLast
allButLast   allButFirst
allButFirst   isSorted
isSorted   repeat
repeat   makeStringArray
makeStringArray   removeFirst
removeFirst   firstHalf
firstHalf 
 statistics
statistics   targetPair
targetPair   duplicateLast
duplicateLast   join
join   move
move   fill
fill   maxRun
maxRun   findTheDuplicate
findTheDuplicate 
 sortedInsert
sortedInsert   mergeSortedArrays
mergeSortedArrays   onlyEvens
onlyEvens   swapHalves
swapHalves   findAll
findAll   removeDuplicates
removeDuplicates   countOccurrences
countOccurrences  
 hasRepeat
hasRepeat   evenIndexes
evenIndexes   eachDuplicate
eachDuplicate   tenSum
tenSum   cantMakeIt
cantMakeIt  
 uniqueCount
uniqueCount   bubbleSortPasses
bubbleSortPasses   maxRepeat
maxRepeat 
Copyright Nick Parlante 2017 - privacy