Skip to content

ALX students 21 days of C challenges based on Sams teach yourself C in 21 days

Notifications You must be signed in to change notification settings

dutkulang/ALX-21-days-coding-challenge

Repository files navigation

ALX 21 days coding challenge

ALX students 21 days of C challenges based on Sams teach yourself C in 21 days book, a PDF version can be found in this repo.

These challenges are 100% voluntary and for those who wish to improve on their C programming skills. You may come up with the solutions alone or with the help of external persons and tools.

How to contribute / participate in the challenge

  1. Fork the main repo from ALX-21-days-coding-challenge

  2. clone your forked copy of the repo.

  3. create your own development branch after your own name

# An example could be that my name is Betty Kimba

# git branch <your-name>

$ git branch betty-kimba
  1. Switch to your created branch.
$ git switch betty-kimba
  1. Create a folder for the challenge of your choice.
$ mkdir -p Day2_challenge

$ cd Day2_challenge
  1. create a notes.md file(optional) and your solution files

At times as we code, alot of research is done before-hand and during the actual coding process. notes.md is the right place to include those findings.

  1. Remember to use Betty.
  2. Push your working branch to GitHub.
# -u flag to set upstream branch
# git push -u origin <your-name>
$ git push -u origin betty-kimba
  1. Contribute your work to the main repo by creating a pull request.

Give your pull request a title and comment.

Title: `Solution for Day2_challenge`
comment: "
    - Dynamically allocated memory using malloc
    - used strcpy to copy the a string into the allocated memory
    - used free to free up the allocated heap memory.
"
  1. Give this challenge repo a and continue your DO HARD THINGS journey.

The zen of ALX, by Dut Kulang

As you do hard things

Remember that aunty Betty is final

because she is the BOSS

you must make her HAPPY

Your code MUST be to her taste

or suffer in her hands

her pet Kimba will smell and bite

if you dare try to cheat.

80 hours a week is real not a joke,

datelines willl police and enforce it.

To defer does not make you failure

even the smartest minds must rest too

semi-colons are the root cause of all evil

don't forget them at end of your lines.

C will make see

ask Cpython what it saw

while true, we

Do hard things

About

ALX students 21 days of C challenges based on Sams teach yourself C in 21 days

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages