Skip to content

Tag Archives: Fibonacci

Given an array A containing integers, the task is to find the length of longest Fibonacci subarray formed by removing only one element from the… Read More
Given a singly linked list containing N nodes, the task is to perform the following operations on the Fibonacci nodes present in it:   Print all… Read More
Given an array arr[] of N positive integers, the task is to find the minimum (smallest) and maximum (largest) Fibonacci elements in the given array.… Read More
Given an array arr[] of N integers, the task is to remove all the fibonacci numbers present in the array. Examples: Input: arr[] = {4,… Read More
Given an even number N, the task is to find two Fibonacci numbers whose sum can be represented as N. There may be several combinations… Read More
Given a number K, the task is to print the fibonacci numbers present at Kth level of a Fibonacci Binary Tree. Examples: Input: K =… Read More
Given a singly linked list containing N nodes, the task is to find the sum and product of all the nodes from the list whose… Read More
Given a circular singly linked list containing N nodes, the task is to remove all the nodes from the list which contains Fibonacci data values.Examples:  … Read More
Given an array arr containing non-negative integers, the task is to print the length of the longest subsequence of Fibonacci numbers in this array. Examples:… Read More
Given a doubly linked list containing N nodes, the task is to remove all the nodes from the list which contains Fibonacci numbers.Examples:   Input: DLL… Read More
Given an array arr[] containing Q positive integers and two numbers A and B, the task is to find the number of ordered pairs (x,… Read More
Given a number N, the task is to find the next Non-Fibonacci number. Examples: Input: N = 4 Output: 6 6 is the next non-fibonacci… Read More
Given Q queries containing ranges in the form of [L, R], the task is to find the sum of all non-fibonacci numbers for each range… Read More
Given an array arr[], the task is to count the number of consecutive Fibonacci pairs in this array. Examples: Input: arr[] = { 3, 5,… Read More
Given that N people are sitting in a circular queue numbered from 1 to N, the task is to count the number of ways to… Read More