chevron_left

Recent posts tagged recursion

5 0 5 min.
Design  аn  Аlgоrithm  fоr  соmbining  twо  sоrted  соntiguоus  lists  intо  а  single  sоrted  соntiguоus  list.Оbjeсtive:  Given  twо  sоrted  linked  li...
posted Sep 2 sakshi 955 points
8 0 4 min.
# Find Prime Number in c using recursion.Question : What is Prime Number ?In simple words you can say that if a number is divisible by 1 and itself only then the number is a prime number. but there is also an exception which is “...
posted Aug 5 Govind Potdar 24 points
4 0 2 min.
Fibonacci series is a collection of numbers that starts with 0 and 1, in which a number is the sum of 2 preceding ones. If we denote the Fibonacci serries as F, then:Fn = Fn-1 + Fn-2This is the first 12 numbers of the Fibonacci series:0, 1, 1, 2...
posted Aug 3 hhh98hd 226 points
1 0 1 min.
Recursive// A recursive C program to print all numbers from 1// to N without semicolon#include<stdio.h>#define N 10int main(int num){    if (num <= N && printf("%d ", num) && main(num + 1)) ...
posted Jul 31 Yogesh Sharma 337 points
0 0 1 min.
Factorial Program in Java: Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!. For example:    4! = 4*3*2*1 = 24      5! = ...
posted May 17 muliemes 0 points
32 1 2 min.
In this blog, we will see How to find minimum value in array recursion java.Given an array of integers arr, the task is to find the minimum element of the array using recursion.example:Input: arr = {1, 4, 3, -5, -4, 8, 6};Output: min = -5, max = 8Inp...
posted Oct 13, 2020 Hasnain_khan 0 points
To see more, click for the full list of questions or popular tags.