| about | help | code help+videos | done | prefs |
orion.a.smith@gmail.com apcsa-lists
Description:problems using ArrayLists in Java
These problems all use the ArrayList class, with generic typing through the angle bracket convention such as ArrayList<Integer>.`
Note about CodingBat test cases with ArrayListsCodingBat will represent ArrayLists in test cases much like arrays, using the square bracket [] syntax. This can sometimes be confusing, since some of the problems in this set use both arrays and ArrayLists. Look to the method header to give you more information about what data structures the input and output represent.
No loops
apcsaListSize
apcsaListAddEnd
apcsaListAddBeginning
apcsaListAddSize
apcsaListAddRepeat
apcsaListSetRotation
apcsaListCreateFromParams
apcsaListRemoveSomewhere
apcsaListRemoveFirstMatch
apcsaListAverageRemovals
apcsaListReplaceThird
apcsaListReplaceSomewhere
apcsaListFromArray
apcsaListToArray
apcsaListInsertThrice
With loops
apcsaListAddLargestValue
apcsaListAddLargestIndex
apcsaListAllInBetweens
apcsaListReplaceZeros
apcsaListHalfBeforeZeros
apcsaListAddNegations
apcsaListFindClosest
apcsaListRemoveCloseUnder
apcsaListPricedRight
From other teachers
From Lauren Tan, APCS Teacher at Ridge High School in Basking Ridge, NJ
removeLowerVals H
findAverage H
lotteryTicketChecker H
lotteryTicketCheckerWithRepeats H
apcsaListFirstCharacters
apcsaListEvenStrings
apcsaListAverageLength
apcsaListIncreasingLength
apcsaListAddSplice
apcsaListFindTarget
apcsaListIncreasingStrings
apcsaListOrderedCharacters
apcsaListJustCharacters
apcsaListLongestPrefix
apcsaListOthersContained
apcsaListModMover
Enjoy!
apcsaListCompletePairs
apcsaListElementsToIndexes
apcsaListFrequencies
apcsaListMoveExtraDigits
apcsaListMoveExtraBaseDigits
apcsaListMoveGreaterThan
Authoring docs
Copyright Nick Parlante 2017 - privacy