## Count ways to divide circle using N non-intersecting chords

Given a number N, find the number of ways you can draw N chords in a circle with 2*N points such that no 2 chords… Read More »

Given a number N, find the number of ways you can draw N chords in a circle with 2*N points such that no 2 chords… Read More »

Given an Array of Positive and Negative Integers, find out the Maximum Subarray Sum in that Array. Examples: Input1 : arr = {-2, -3, 4,… Read More »

Call decimal number a monotone if: . Write a program which takes positive number n on input and returns number of decimal numbers of length… Read More »

Given a sequence, find the length of the longest palindromic subsequence in it. More examples Input : abbaab Output : 4 Input : geeksforgeeks Output… Read More »

Given a 2D array(m x n), check if there is any path from top left to bottom right. In the matrix, -1 is considered as… Read More »

The Jacobsthal sequence is an additive sequence similar to the Fibonacci sequence, defined by the recurrence relation Jn = Jn-1 + Jn-2, with initial terms… Read More »

Given an Array of Integers and an Integer value k, find out k non-overlapping sub-arrays which have k maximum sums. Examples: Input : arr1[] =… Read More »

Given a n x n matrix of integers. The problem is to find the largest area rectangular sub-matrix having sum divisible by the given value… Read More »

Given a string A, compute the minimum number of characters you need to delete to make resulting string a palindrome. Examples: Input : baca Output… Read More »

A child is running up a staircase with n steps and can hop either 1 step, 2 steps, or 3 steps at a time. Implement… Read More »

Newman-Conway Sequence is the one which generates the following integer sequence. 1 1 2 2 3 4 4 4 5 6 7 7… In mathematical… Read More »

Given an array of numbers, find the maximum product formed by multiplying numbers of an increasing subsequence of that array. Note: A single number is… Read More »

Given n, how many distinct Max Heap can be made from n distinct integers? Examples: Input : n = 3 Output : Assume the integers… Read More »

The Fibonnaci triangle or Hosoya’s triangle is a triangular arrangement of numbers based on Fibonacci numbers. Each number is the sum of two numbers above… Read More »

Given an array arr[] containing n integers. The problem is to count number of increasing subsequences in the array of size k. Examples: Input :… Read More »