Skip to content

Latest commit

 

History

History

0x08-recursion

0x08-recursion

Description

This project focuses on recursion in C. It covers how to define and use recursive functions, how to solve problems using recursion, and how to understand the stack behavior during recursive calls. The project aims to provide a deep understanding of these fundamental concepts in C programming.

Resources

Read or watch

Learning Objectives

General

  • What is recursion.
  • How to implement recursion.
  • In what situations you should implement recursion.
  • In what situations you shouldn’t implement recursion.

Tasks

Task Name File Description
She locked away a secret, deep inside herself, something she once knew to be true... but chose to forget 0-puts_recursion.c Writes a function that prints a string, followed by a new line.
Why is it so important to dream? Because, in my dreams we are together 1-print_rev_recursion.c Writes a function that prints a string in reverse.
Dreams feel real while we're in them. It's only when we wake up that we realize something was actually strange 2-strlen_recursion.c Writes a function that returns the length of a string.
You mustn't be afraid to dream a little bigger, darling 3-factorial.c Writes a function that returns the factorial of a given number.
Once an idea has taken hold of the brain it's almost impossible to eradicate 4-pow_recursion.c Writes a function that returns the value of x raised to the power of y.
Your subconscious is looking for the dreamer 5-sqrt_recursion.c Writes a function that returns the natural square root of a number.
Inception. Is it possible? 6-is_prime_number.c Writes a function that returns 1 if the input integer is a prime number, otherwise return 0.
They say we only use a fraction of our brain's true potential. Now that's when we're awake. When we're asleep, we can do almost anything 100-is_palindrome.c Writes a function that returns 1 if a string is a palindrome and 0 if not.
Inception. Now, before you bother telling me it's impossible... 101-wildcmp.c Writes a function that compares two strings and returns 1 if the strings can be considered identical, otherwise return 0.