Week 05 (Functions) - ICPC-Damnhour-Community/Level-0-2025 GitHub Wiki
Welcome to Week 5! π This week, weβll explore functions in C++, essential tools for writing clean and efficient programs. By the end, you'll learn how to define and use functions, leverage built-in functions. Letβs get started! π
- π± Learn how to define functions in C++, understand their purpose, and how they make programming more organized and reusable.
- π‘ Discover how to:
- Define functions in C++.
- Call functions and pass data to them.
- Retrieve information from functions (return values).
- π Explore built-in functions in C++ that are critical for efficiency:
- Built-in functions save significant effort by providing ready-made solutions.
- They enhance code speed and brevity, allowing you to focus on more complex problems.
| π Topic | Type | π Link |
|---|---|---|
| Functions (2024 Session) | π¬ Video |
βΆ Watch Here until 02:06:23
|
| Functions 1 - Intro | π¬ Video | βΆ Watch Here |
| Functions 2 - Practice | π¬ Video | βΆ Watch Here |
| Functions 3 - Homework | π¬ Video | βΆ Watch Here |
Built-In Functions <algorithm> |
π¬ Video | βΆ Watch Here |
| Cpp Reference: Functions | π Article | Read Here |
| Cpp Reference: Built-In Functions | π Article | Read Here |
| π Topic | π Link |
|---|---|
| π¬ Recording | Watch |
| π Slides | View |
| π Problems | Coming Soon |
| π» Codes and Solutions | Codes |
- Sheet Link: Access Problem Sheet
- Problems:
| π Problem Name | π₯ Video Solution | π» Code Solution |
|---|---|---|
| A - Reverse Array | Watch Solution | Code |
| B - Summation | Watch Solution | Code |
| C - Search | Watch Solution | Code |
| D - Is Sorted? | Watch Solution | Code |
| E - Gravity Flip | Watch Solution | Code |
| F - Currency System in Geraldion | Watch Solution | Code |
| G - Songs Compression | Watch Solution | Code |
| H - Chores | Watch Solution | Code |
| I - I_love_%username% | Watch Solution | Code |
| J - Puzzles | Watch Solution | Code |
| K - Is your horseshoe on the other hoof? | Watch Solution | Code |
| L - Count Order | Watch Solution | Code |
| M - Tram | Watch Solution | Code |
| N - Arrival of the General | Watch Solution | Code |
| O - Twice | Watch Solution | Code |
- Contest Link: Access Codeforces Problems
- Problems Overview:
| π Problem | π₯ Video Tutorial | π Code Solution |
|---|---|---|
| A - Level 0 - Training | Watch Solution | Code |
| B - Recurring Challenges | Watch Solution | Code |
| C - Parity Puzzle | Watch Solution | Code |
| D - Round Number Representation | Watch Solution | Code |
| E - Sakr and Hagag | Watch Solution | Code |
| F - Ahmed and Digits | Watch Solution | Code |
| G - Ammar's Task | Watch Solution | Code |
For any questions, join the discussion in our Discordβs #community-chat. Weβre here to help you every step of the way!
β¨ Good luck, and have a great week! π