Gagan G Saralayagagang.hashnode.dev·Mar 6, 2024C program to find the factorial of a number.Here is a program to find the factorial of a number. #include<stdio.h> int fac(int n); int main() { printf("Here is a program to find the factorial of a number using functions\n"); printf("Enter a num to find the factorial:"); int n = 0...Discusscrazyblogger
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 27, 2023Recursion can make your head spin!Recursion is a programming concept where a function calls itself to solve a problem. To help you understand recursion in C, let's go through a simple example: calculating the factorial of a number. The factorial of a non-negative integer (n), denoted...DiscussC ProgrammingRecursion
RuchikaRawaniruchikarawani.hashnode.dev·Nov 26, 2023A Beginner's Guide to Recursion: Understanding Factorials in C++Welcome to the world of programming! If you're just starting your coding journey, you may encounter terms like "recursion" that sound complex at first. Fear not! In this blog post, we'll explore a simple C++ code snippet that calculates factorials us...DiscussRecursion
Sirisha Challagirisirishachallagiri.hashnode.dev·Nov 15, 2023Factorial of a numberFactorial of a non-negative number is the multiplication of all positive numbers that are smaller than are equal to n. Formula: n! = n*(n-1)\(n-2)*... 2\1 n=5 => 5*4*3*2*1 n=5 => 1*2*3*4*5 factorial of 5 is 120 0! = 1 Factorial using for loop: public...Discuss·1 likeCode With SiriJava
Sawan Badhwarsawan1367.hashnode.dev·Oct 31, 2023Recursion ProblemsHello everyone, I hope that you all are doing great and being wary of the weather changes. So, today it's my day 4 since my 100-day DSA challenge began. Till now we discussed a few things like time complexity, space complexity and recursion. But I do...Discuss·1 likeRecursion in programming
Corina Murgcorina.hashnode.dev·Aug 29, 2023Memoization and the Magic of Self-Containing FunctionsIn JavaScript development, caching data for quick retrieval is paramount. Many developers instinctively reach for objects as key-value stores or arrays for ordered lists. Some might even delve into specialized data structures like Maps and Sets to op...DiscussQuirks of JavaScriptMemoization
Anushayosa.hashnode.dev·Aug 16, 2023Function PointerThis blog has a program that uses Function Pointer to perform two different operations. I split the code into smaller sections and explain. The standard input output header file is included to print to the stdout. #include <stdio.h> This function ca...DiscussC basicsC
Priyanka Gourgourpriyanka.hashnode.dev·Jul 22, 2023Unravelling the Enigma of Recursion: Solving Real-World Puzzles with Elegance"Recursion: where the tiniest steps pave the path to boundless creativity, connecting art and science in perfect harmony." - Anonymous Introduction Have you ever found yourself lost in the mesmerizing beauty of a snowflake, marvelling at its intrica...Discuss·21 likes·35 readsRecursion
Abhishikt Emmanuel Prakashabhishikt.hashnode.dev·Jun 5, 2023Understanding recursion the simple wayRecursion is a fundamental concept in computer science where a problem is solved by breaking it down into smaller, simpler subproblems. The process involves calling the function recursively, executing the tasks sequentially, and storing intermediate ...Discuss·90 readsRecursion
Himanshu Pareekblog.javarush.dev·May 20, 2023Understand Recursion & MemoizationRecursion is a technique to solve problems by dividing the original problem into one or more similar sub-problems, solving the sub-problems by calling the same method again, and then using the solutions of sub-problems to get the solution to the a...Discuss·2 likes·103 readsGeneral ProgrammingRecursion