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
fix23
frontPiece
makeMiddle
insertSum
unlucky1
rotateLeft3
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
maxBelow50
countEvens
contains
isAbsent
countRaises
first6
runningTotal
reverseArray
hasSymmetry
connectFour
buildArray
only14
resize
sameParity
no14
tenRun
isEverywhere
has22
appendToEnd
appendStart
showEvens
catFriendly
sumNo5
inAbcOrder H
secondIndexOf
sumArrays
pre4
loseThe2
bumpTheNines
allButLast
allButFirst
isSorted
repeat
makeStringArray
removeFirst
firstHalf
statistics
targetPair
duplicateLast
join
move
fill
maxRun
findTheDuplicate
sortedInsert
mergeSortedArrays
onlyEvens
swapHalves
findAll
removeDuplicates
countOccurrences
hasRepeat
evenIndexes
eachDuplicate
tenSum
cantMakeIt
uniqueCount
bubbleSortPasses
maxRepeat
Copyright Nick Parlante 2017 - privacy