The Fibonacci Sequence using Recursion and Memoization without using a library in PythonThe Fibonacci sequence is a famous mathematical sequence where each term is the sum of the two preceding terms. In this blog post, we will walk through a Python code that calculates the Fibonacci sequence and explain each step in detail. Step 1: Init...Jul 7, 2023 · 3 min readfridah.hashnode.dev
Reversing a String In Python Using RecursionHere's a step-by-step breakdown of how the function works: The function reversing_string() takes a string as input. It checks if the input string is empty (""). If it is, an empty string is returned as the base case of the recursion. If the input ...Jun 15, 2023 · 1 min readfridah.hashnode.dev
How to Print an Integer Using the putchar() functionThis is a C program that defines a function named print_number() which takes an integer value as a parameter and prints it to the console. It also has a main() function which calls the print_number() function with the integer value 1028 as an argumen...Apr 22, 2023 · 3 min readfridah.hashnode.dev
How to Print Multiple Data Types with a Single Function in CThis code is a C program that allows you to print any combination of strings, characters, integers and floats using a single function. The main idea of this program is to use variadic functions and a list of structs to identify the type of each argum...Apr 22, 2023 · 3 min readfridah.hashnode.dev
Creating a Simple Calculator in C using structs and function pointersThis is a C program that performs basic arithmetic calculations based on the command line arguments provided to it. The program takes three command line arguments, the first and third arguments are the two operands, and the second argument is the ope...Apr 21, 2023 · 3 min readfridah.hashnode.dev