Skip to content

About

πŸŽ“ 42 School | Complete Rank 02 (milestone 2) preparation toolkit featuring an interactive PracticeShell simulator and level-based C solutions.

Topics

Resources

Stars

23 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

69 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PracticeShell Banner

PracticeShell
πŸ‘‰ Get your 42 badges here

Rank 02 C PracticeShell - Exercises & Solutions


Warning

This repository does not contain the real Rank 02 exam subjects or solutions. The PracticeShell uses classic Piscine and libft exercises, plus original exercises inspired by the exam's difficulty levels. They are great for training, but they are not the actual exam questions.


πŸ’‘ About

This repository is a growing bank of exercises for the C topics learned during the Piscine and the first projects of the Common Core.

The goal is to help you:

  • Train the topics you learned (strings, pointers, malloc, linked lists...)
  • Review your doubts and find your weak points
  • Prepare for the exam by practicing under time and test pressure.

New exercises will be added over time. Each one focuses on a concept you need for the exam.



PracticeShell Preview

Quick Start β€’ Features β€’ Exam Mode β€’ Practice Mode β€’ Solutions


A C-based PracticeShell simulator inspired by the 42 School Common Core Rank 02 exam, combined with a collection of organized solutions grouped by difficulty level.


πŸš€ Quick Start

Clone the repository:

git clone https://github.com/SaraFreitas-dev/42-Python-PracticeShell-Rank02
cd 42-Python-PracticeShell-Rank02

Build and run the PracticeShell:

make
./practiceshell

You will be presented with the main menu:

[1] Start Exam
[2] Practice Mode
[3] List all exercises
[q] Quit

No dependencies, no setup: just cc and make.


πŸ“ Workspace

When the PracticeShell starts, it automatically creates a rendu directory. When you get an exercise, its subject appears in a subject directory, just like in the real exam. Only the current subject is there.

All exercise files should be created inside rendu, each one in a subfolder with the exercise name. The grader will only validate solutions placed in the generated workspace.

Example:

subject/
└── ft_strlen/
    └── subject.txt

rendu/
└── ft_strlen/
    └── ft_strlen.c

Simply create the requested file, implement your solution, and submit it through the PracticeShell interface for automatic evaluation.


⭐ Main Feature: PracticeShell Simulator

The PracticeShell is the core of this repository.

It lets you practice each topic hands-on, with hidden tests and automatic feedback, instead of just reading solutions.

PracticeShell Banner

Grading Exam experience Interface
Automatic grading Random exercise assignment Colored terminal UI
Hidden test cases Progressive level system Score tracking
Compiled with -Wall -Wextra -Werror Exam & practice modes Time tracking
4 difficulty levels Rank progression logic Built with Makefile

The workflow:

  1. Receive a subject
  2. Create the requested C file
  3. Implement the solution
  4. Submit for grading
  5. Fix failing tests
  6. Progress to the next level

PracticeShell Preview


🎯 Exam Mode

Select:

[1] Start Exam

The simulator will:

  • Assign exercises automatically
  • Increase difficulty after each successful exercise
  • Track your score
  • Simulate a 3-hour exam session

πŸ† Passing the Exam

The simulator uses a progressive difficulty system. To successfully complete the exam you must validate:

4 / 4 exercises

πŸ›  Practice Mode

Select:

[2] Practice Mode

Practice Mode allows you to:

  • Choose any exercise
  • Focus on a specific level
  • Submit unlimited times
  • Train without time pressure

πŸ“š Solutions

Solutions are organized by level. Each exercise has its own folder with the subject and the solution.

solutions/
β”œβ”€β”€ Level_1/
β”‚   └── ft_strlen/
β”‚       β”œβ”€β”€ ft_strlen.c
β”‚       └── subject.txt
β”œβ”€β”€ Level_2/
β”œβ”€β”€ Level_3/
└── Level_4/

This makes it easy to study specific difficulty ranges or review previously solved exercises.

⚠️ Try each exercise in the PracticeShell first. Reading solutions before attempting them will not show you where your weak points are.


πŸ“– Topics Covered

  • write and string printing
  • String manipulation and transformations
  • Argument handling (argc / argv)
  • Number conversion (atoi, itoa, binary, bases)
  • Bitwise operations
  • Memory allocation with malloc and free
  • Splitting and joining strings
  • Linked lists
  • Sorting
  • Recursion and grid problems
  • Edge case handling
  • Algorithmic thinking

⚠️ Disclaimer

This project is an independent educational tool. It is not affiliated with or endorsed by 42 School, and it does not contain any official 42 exam content.


πŸ’‘ Suggestions

Found a bug, a missing test case or have an idea? Feel free to open an issue.


⭐ Support

If this repository helped you prepare for the exam, consider giving it a star ⭐

Good luck and happy coding πŸš€

About

πŸŽ“ 42 School | Complete Rank 02 (milestone 2) preparation toolkit featuring an interactive PracticeShell simulator and level-based C solutions.

Topics

Resources

Stars

23 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages