How alouatiq/alx-interview works
Project type and purpose
• This is not a webapp or service-oriented project but rather a collection of standalone algorithmic exercises (ALX interview tasks) written in Python (and one in JavaScript).
• Each subdirectory (0x00-pascal_triangle, 0x01-lockboxes, …) contains a single problem implementation, a main/test driver script, and a small README.
File structure
• Top-level directory “alx-interview”
• Subfolders named “0x00-…”, “0x01-…”, … “0x0A-…”
• Each folder contains:
– One or more solution files (e.g., 0-pascal_triangle.py)
– A driver/test script (e.g., 0-main.py or main_0.py)
– A problem-specific README.md
• No shared libraries, no build scripts, no CI files—each exercise stands alone.
README
• The top-level README simply names the repo (“alx-interview”) with no further architectural guidance.
• Each sub-README likely describes problem statement, usage, and examples.
Main components
a. Developer (CLI user)
b. alx-interview (root container)
– Solution Script
– Test/Driver Script
– README.md
c. Runtime Environments
• Python Interpreter (v3.x)
• Node.js (for starwars_api JS file)
d. Git Repository
• Remote origin (e.g., GitHub)
Relationships and interactions
• Developer → clones/pulls the Git repo
• Developer → invokes python <exercise>/main_*.py (or node <exercise>/*.js)
• Interpreter → loads solution module → runs algorithm → returns output
• Optional: Developer writes/updates solution files → commits → pushes to remote
Architectural patterns/design principles
• Modular: each exercise is an independent module
• Directory-per-feature: one folder per algorithmic problem
• Clear separation between code (solution), tests (driver), and documentation