Exam Rank 02 Github May 2026
| Level | Difficulty | Typical Functions Required |
|-------|------------|----------------------------|
| 0 | Trivial | aff_a, aff_first_param, maff_revalpha |
| 1 | Easy | ft_strlen, ft_swap, ft_putstr, ft_strcmp |
| 2 | Moderate | ft_atoi, ft_strdup, ft_strcpy, first_word |
| 3 | Hard | ft_range, ft_itoa, ft_strjoin, print_hex |
| 4 | Nightmare | fprime, ft_split, rev_wstr, rostring, sort_list |
To pass (usually 75% or 100%), you must reach at least Level 3 and solve one Level 4 exercise.
Task: Reverse a string in place. Logic: Use two indices (start and end) and swap characters until they meet in the middle. exam rank 02 github
You will likely see one of these first.
Do not just clone and run. You will learn nothing. Instead, follow this proven 4-phase method used by successful 42 students. | Level | Difficulty | Typical Functions Required
(Note: Exam projects can vary slightly by campus/year, but ft_strjoin is historically the most common final boss).
If you reach this stage, you have approximately 1 hour left. You must handle complex logic, multiple arguments, and edge cases involving NULL pointers. Task: Reverse a string in place
Do not memorize entire solutions. Memorize patterns. Create a file called exam_tricks.txt with snippets:
// ft_strlen pattern int ft_strlen(char *s) int i = 0; while (s[i]) i++; return (i);
// ft_range pattern (allocate memory) int *ft_range(int min, int max) int *arr; int size = max - min; if (size <= 0) return (NULL); arr = malloc(sizeof(int) * size); // ... fill loop ...