Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
Arrays Dynamic Programming arithmetic progression

Longest Arithmetic Progression DP-35

Given a set of numbers, find the Length of the Longest Arithmetic Progression (LLAP) in it. Examples: set[] = {1, 7, 10, 15, 27, 29} output = 3 The longest arithmet...
PHP Web Technologies arithmetic progression

PHP program to print an arithmetic progression series using inbuilt functions

We have to print an arithmetic progressive series in PHP, between two given numbers a and b both including, with a given common arithmetic difference of d. Examples:...
Arrays Divide and Conquer Mathematical

Find the missing number in Arithmetic Progression

Given an array that represents elements of arithmetic progression in order. One element is missing in the progression, find the missing number. Examples: Input: arr...
Dynamic Programming arithmetic progression Dynamic Programming

Count of AP (Arithmetic Progression) Subsequences in an array

Given an array of n positive integers. The task is to count the number of Arithmetic Progression subsequence in the array. Note: Empty sequence or single element sequ...
Arrays Dynamic Programming arithmetic progression

Longest Arithmetic Progression DP-35

Given a set of numbers, find the Length of the Longest Arithmetic Progression (LLAP) in it. Examples: set[] = {1, 7, 10, 15, 27, 29} output = 3 The longest arithmet...
Dynamic Programming Misc Geometric Progression

Longest Geometric Progression

Given a set of numbers, find the Length of the Longest Geometrix Progression (LLGP) in it. The common ratio of GP must be an integer. Examples: set[] = {5, 7, 10, 15...
Arrays Hash Sorting

Check whether Arithmetic Progression can be formed from the given array

Given an array of n integers. The task is to check whether an arithmetic progression can be formed using all the given elements. If possible print “Yes”...

Subscribe to Our Newsletter