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...

Share

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:...

Share

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...

Share

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...

Share

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...

Share

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...

Share

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”...

Share