CMU 15-112 Fall 2015 Homework 4 Practice
(Due never)
- Do not use recursion this week.
- Do not hardcode the test cases in your solutions.
Some Worked Examples Using Lists:
-
The Locker Problem
-
Anagrams
-
The Sieve of Eratosthenes
-
The Prime Counting Function
-
Sorting (selection, bubble, merge, builtin sorts)
More Practice:
-
median(a) from
here
-
alternatingSum(a) from
here
-
mostCommonName(a) from
here
-
isRotation(a1, a2) from
here
-
missingNumber(a) from
here
-
split() from
here
-
join () from
here
-
nonDestructiveRotateList from
here
-
destructiveRotateList from
here
-
histogram()
here