Functions
Functions help you organize code, avoid repetition, and make your solutions cleaner.Defining functions
Pass by reference vs value
Structs
Structs let you group related data together.Sorting structs
Pairs and tuples
Time complexity
Understanding time complexity tells you whether your solution will pass within the time limit.Big-O notation
How to estimate
The rule of thumb: 10⁸ simple operations per second.Analyzing loops
Practice
Sheet 4: Functions, Structs & Time Complexity
Practice problems for this tutorial.