Codecademy - a web site where you can learn and
practice C++ coding.
HackerRank - another place to practice your C++ skills.
Computer Science Major
Check out the
road maps for completing the major in 4, 3.5, or 3 years.
Click on a tab at the bottom of the spreadsheet to change the number of years desired.
ds4input.txt - sample input file;
identical to the input to the previous project.
separateTemplates.zip - CLion project showing how to set up multiple implementation files that include templates.
Lab Info
Lab 11
trees.cpp is available in the "In-Class Examples" section, below.
randNums.txt - sample input file
containing 1000 random positive integers from the set {1..5000}. The
end of the file is signified with a negative integer.
virtualV1.cpp - basic functions; we will use
virtual functions to get a different result.
hlist.cpp - heterogeneous
list example using virtual functions.
maxsubsequence.cpp - calculating maximum subsequence sum; first solution is O(n^3) and second version is O(n).
Sorting
sorting.mp4 - video of sorting routines in action.
Sort Visualizer - website
that shows visualizations of many sorting algorithms. Note that the
Bubble Sort implementation is not correct in both C (one error)
and C++ (two errors). Actually, all the implementations
(Java, JavaScript, and Python) are incorrect.
Always gotta watch out for stuff on the Interwebs!
AVL tree visualization - interactive visualization, but note that heights here are computed as the number of nodes from a root to the farthest leaf rather than the number of edges from a root to the farthest leaf.