| about | help | code help+videos | done | prefs | 
david.white@denison.edu cs111fall2019
Problem Bank
Remember that you can't use TAB for indentation, so use 2 spaces instead. You have as many attempts on each problem as you want.
For Sept 16, please do the test problem:  test
test  
For Sept 19, please do these functions:  basketball
basketball   sum
sum   football
football   songs
songs 
For Sept 22, please do these loop problems:  power
power   sumTriplets
sumTriplets   factorial
factorial   compound
compound   growth3
growth3 
For Sept 24, please do these while loop problems:  incrementTillEqual
incrementTillEqual   yearsUntilDoubled
yearsUntilDoubled   interest
interest 
For Sept 27, please do this population model:  bacteria H
bacteria H  
For Oct 9, please do these conditional problems:  even
even   between
between   justone
justone   sumprod
sumprod   max3
max3 
For Oct 22, please do the these string problems:  nospaces
nospaces   count_code
count_code   piglatin
piglatin   vowels
vowels   cat_dog
cat_dog 
For Oct 27, please do these problems about dna, in lieu of Lab 3:  clean
clean   findATG
findATG   ssr H
ssr H    orf
orf   mark
mark   gcFreq
gcFreq 
For Oct 29, please do these list problems:  squares_better
squares_better   countOdds
countOdds   sumOdds
sumOdds   meanSquares
meanSquares   variance
variance  
For Nov 1, please do these dictionary problems:  list2dict H
list2dict H    my_len
my_len   count_values
count_values   distinct
distinct   count_duplicates
count_duplicates   firstLetterCount
firstLetterCount 
For Nov 3, please do these slightly harder list problems:  sumOddIndices
sumOddIndices   square
square   swap_better
swap_better   remove_better
remove_better   intersect
intersect   big_diff
big_diff 
For Nov 10, please do these 2D list problems:  max2D
max2D   sumRows
sumRows   sumCols
sumCols   find
find   diagonal
diagonal 
For Nov 17, please do these recursion problems:  recSearch
recSearch   sum
sum   minList
minList   recFactorial
recFactorial   recPower
recPower 
For Nov 17, please do these slightly harder recursive problems:  countUpper
countUpper   RecFibonacci
RecFibonacci  
For Dec 13, please do these review problems:  diagonal2
diagonal2   multiplicationTable
multiplicationTable 
For Dec 13, please do these overall review problems:  xyz_there
xyz_there   evenParity
evenParity   sentences
sentences   least_likely H
least_likely H    wordFrequency
wordFrequency   factorization H
factorization H    permutations H
permutations H  
Other problems:  powerLoop
powerLoop   factorialLoop
factorialLoop 
Future potential problems...
Arithmetic:
 geoMean
geoMean 
Loops:
 sumDigits
sumDigits 
 sum13
sum13 
 factorial
factorial 
 Fibonacci *
Fibonacci *
Conditionals:
 sumprod
sumprod 
 max3
max3 
 even
even   between
between   justone
justone   sum_double H
sum_double H    diff21 H
diff21 H    makes10 H
makes10 H    near_hundred H
near_hundred H    pos_neg H
pos_neg H  
While:
 incrementTillEqual
incrementTillEqual 
 yearsUntilDoubled
yearsUntilDoubled 
 interest
interest 
Lists:
 sumOdds
sumOdds 
 countOdds
countOdds 
 variance
variance 
 median
median 
 squares_better
squares_better 
 remove_better
remove_better 
 swap_better
swap_better 
 intersect
intersect 
 meanSquares
meanSquares 
 big_diff
big_diff  
 sumOddIndices
sumOddIndices 
 square
square  
Lists and Strings:
 findall
findall 
 stars
stars 
 searchBool
searchBool   longest
longest   differ
differ 
 differ
differ 
Strings:
 difference
difference 
 count_code
count_code 
 evenParity
evenParity 
 makeEvenParity
makeEvenParity 
 hamming
hamming 
 double_char H
double_char H  
 txtHelp
txtHelp 
 piglatin
piglatin   vowels
vowels   nospaces
nospaces   username
username 
 sentences
sentences   capitalize
capitalize   findWord
findWord 
 cat_dog
cat_dog   xyz_there
xyz_there  
 countNames
countNames  
 count_hi H
count_hi H  
 is_palindrome H
is_palindrome H    not_string H
not_string H    front_back H
front_back H    front3 H
front3 H  
String problems with solutions:
 string_bits H
string_bits H    string_match H
string_match H    string_times H
string_times H    string_splosion H
string_splosion H    array_front9 H
array_front9 H    front_times H
front_times H    last2 H
last2 H    array123 H
array123 H    array_count9 H
array_count9 H   
Dictionaries:
 list2dict H
list2dict H  
 my_len
my_len 
 distinct
distinct 
 count_values
count_values 
 count_duplicates
count_duplicates 
 least_likely H
least_likely H  
 wordFrequency
wordFrequency 
 firstLetterCount
firstLetterCount 
2D Lists:
 diagonal
diagonal 
 find
find 
 multiplicationTable
multiplicationTable 
 sums
sums 
 diagonal2
diagonal2  
Sorting: 
 selection_sort_better
selection_sort_better 
Recursive: 
 sum
sum 
 recPower
recPower 
 recFactorial
recFactorial 
 minList
minList 
 countUpper
countUpper 
 RecFibonacci
RecFibonacci 
 recSearch
recSearch 
 collatz H
collatz H  
For loop inside a recursive function:
 change H
change H    changes H
changes H  
Difference Equations (Optional):
 annualInterestYears
annualInterestYears 
 compoundInterestAmount
compoundInterestAmount  
 pond4
pond4 
 growth2
growth2 
 SIS
SIS 
 growth3
growth3 
 growth4
growth4 
 growth
growth 
 zombieApocalypse
zombieApocalypse 
 amoebaGrowth
amoebaGrowth 
 bacteria H
bacteria H  
 vampireApocalypse
vampireApocalypse 
Problem Solving:
 end_other H
end_other H  
 whacks H
whacks H  
 whack_a_mole H
whack_a_mole H  
 has22
has22 
 centered_average
centered_average 
 sum67
sum67 
 blackjack H
blackjack H  
 factorization H
factorization H  
 permutations H
permutations H  
 combinations H
combinations H  
 bowling H
bowling H  
 nim H
nim H  
 stone_temple_farmers
stone_temple_farmers 
 dvr_remote H
dvr_remote H  
 piglatin H
piglatin H  
 piglatin2 H
piglatin2 H  
 is_balanced
is_balanced 
 balance_parens H
balance_parens H  
Exam 1 practice:
 football
football 
 distance
distance   age
age 
 time
time 
Authoring docs
Copyright Nick Parlante 2017 - privacy