Overview of introductory lectures covering language basics, algorithm analysis, and data structures.
C vs Java Comparison
- Basic syntax and structures in both languages
- Memory management differences
- String, array, and data handling
Algorithm Efficiency in Practice
- O(n²) vs O(n) algorithm comparison
- Performance measurements
- Finding duplicates problem with different approaches
Dynamic Arrays Implementation
- C and Java implementations side-by-side
- Automatic resizing strategies
- Growth and shrinking mechanics
- Amortized time complexity
Each lecture folder has its own README with file descriptions and instructions to run the code.
# Example: Run C code from lec1
cd lec1_asymptotic
gcc compare.c -o compare && ./compareFor Java code, compile and run similarly using javac and java commands as specified in each lecture's README.
javac ClassName.java
java ClassName