## find the Arithmetic Progression sequence

Given a first element a and common difference d of an arithmetic progression. Write a program to print the first … Read more

Given a first element a and common difference d of an arithmetic progression. Write a program to print the first … Read more

Given a first element a and common difference d of an arithmetic progression. Write a program to find the nth … Read more

Minimum time difference Given a list of 24-hour clock time points in “HH:MM” format. Write a program to find the … Read more

You are on a business trip and traveling from one city to another. you have a stack of unsorted flight … Read more

Given an array of numbers, write a program to rank the array elements. Example: Given array: [22, 11, 44, 66, … Read more

GIven an array of numbers, find out if array contains three consecutive odd numbers Example: [2, 4, 1, 3, 4, … Read more

Given an array of numbers, you need to find out whether an array can be converted to a non-decreasing array … Read more

Given an array of numbers, you need to duplicate the zero’s in the array. Do not extend the size of … Read more

Given an arithmetic expression which operators, operands and brackets. You need to find out the maximum depth of valid nested … Read more

Given a decimal number, convert that number to its binary representation. Example: Number: 5, binary representation: 101 Number: 8, binary … Read more

Given a binary array (contains only 0’s and 1’s), find out the number of maximum consecutive ones. Example: Input: [0, … Read more

Given an array of numbers, write a program to duplicate the even numbers and return the new array. Example: Input: … Read more

Given a sorted array of integers, Write an algorithm to make all array elements distinct or unique by doing minimum … Read more

Write a program to add the digits of the given number until the number becomes a single digit number. Example: … Read more

The “surpasser” of an element in an array is defined as the number of elements that are to the “right” … Read more