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

srp4379@lausd.net 1-arraybasics

Description:Introduction to Array-1.
Accessing and doing calculations with individual elements of Arrays


Accessing values of individual array elements
getFirstElement1  getFirstElement2  getFirstElement3 
getLastElement1  getLastElement2 

Comparing values of individual array elements
sameFirstLast1  sameFirstLast1A  sameFirstLast1B  sameSecondLast1C  same2ndAnd2ndToLast1D 
sameFirstLast2  sameFirstLast2A  same2ndLast  sameFirst2ndToLast  same2ndAnd2ndToLast 

Adding elements to get a sum
sumFirstTwo  sumFirstThree  sumSecondTwo  sumAllThree  sumAllFour 

Comparing sums
sumOf1stAnd2ndEquals3rd  sumOf1stAnd2ndEquals4th  sumOf2ndAnd3rdEquals1st  sumOf3rdAnd4thEquals1st 

Multiplying the VALUE of elements
getTwice1stValue  getTwice2ndValue  getTwiceSumOf1stAnd2nd  getTwiceSumOf1stThree 

Two input arrays
firstElementsEqual  secondElementsEqual  firstAEquals2ndB  secondAEquals1stB 
sumAEqualsSumB_2  sumAEqualsSumB_3  sumAEqualsSumB_2_3 

Comparing elements to see whether they are in Ascending Order
inOrder2  inOrder3  inOrder4  inOrder5 

In Consecutive Order
inConsecutiveAscendingOrder2  inConsecutiveAscendingOrder3  inConsecutiveAscendingOrder4 
inConsecutiveDescendingOrder2  inConsecutiveDescendingOrder3  inConsecutiveDescendingOrder4 

Finding the LARGEST or SMALLEST element
getSmallest2  getSmallest3  getSmallest4 
getLargest2  getLargest3  getLargest4 
getSmallest2_DifferentLengthsA  getSmallest3_DifferentLengthsA  getSmallest4_DifferentLengthsA  getSmallest5_DifferentLengthsA 
getSmallest3_DifferentLengthsB 
Authoring docs

Copyright Nick Parlante 2017 - privacy