Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
Given an array arr[] containing N elements, the task is to check if the sum of Fibonacci elements of the array is a fibonacci number… Read More »
Given an array arr[] containing N elements, the task is to check if the sum of Fibonacci elements of the array is a fibonacci number… Read More »
Given an array arr[] containing N elements, the task is to find the GCD of the elements which have frequency count which is a Fibonacci… Read More »
Given an array arr[][] containing Q queries and an integer K where each query consists of a range [L, R], the task is to find… Read More »
Given a Binary Tree, the task is to count the nodes whose immediate children are co-prime. Examples: Input: 1 / \ 15 5 / \… Read More »
Prerequisites: Digit DP Given a range [L, R], the task is to count the numbers in this range having the difference between, the sum of… Read More »
Given an integer K and an array arr[] containing N integers, the task is to find the sum and product of K smallest and K… Read More »
Prerequisites: Binary Search Given two positive integers N and K, the task is to count all the numbers that satisfy the following conditions: If the… Read More »
Given an array arr[] of N integers, the task is to maximize the number of indices such that an element is greater than the element… Read More »
The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then… Read More »
Given a Binary Tree, the task is to print the count of nodes whose either of the immediate child is its prime factors. Examples: Input:… Read More »
Given a binary string of size N and an integer K, the task is to perform K operations upon the string and print the final… Read More »
Given an array arr[] of N integers, the task is to sort the array in increasing order by performing minimum number of operations. In a… Read More »
Given a 2D array arr[][] of order NxN, the task is to find the sum of all the elements present in both the diagonals and… Read More »
Given an array arr[], the task is to find the minimum steps required to make an array decreasing, where in each step remove all elements… Read More »
Given a 2D array arr[][] of size M x N integers where M is the number of rows and N is the number of columns.… Read More »