Yahoo India Web Search

Search results

  1. People also ask

  2. 4 days ago · Given an array arr[] of size N, the task is to find the smallest subsequence of the given array whose GCD of the subsequence is equal to the GCD of the given array. If more than one such subsequence exists, then print anyone of them.

    • 11 min
  3. 3 days ago · Given an array of distinct integers, find length of the longest subarray which contains numbers that can be arranged in a continuous sequence. Examples: Input: arr[] = {10, 12, 11}; Output: Length of the longest contiguous subarray is 3 Input: arr[] = {14, 12, 11, 20}; Output: Length of the longest contiguous subarray is 2 Input: arr[] = {1, 56, 58

    • 17 min
  4. 5 days ago · This current article follows and extends this line of research: We present the first polynomial-time algorithm that finds the longest common subsequence under CT-matching of two given strings S and T of length n, in O (n 6) time and O (n 4) space for general ordered alphabets.

  5. 3 days ago · i have a question that want the minimum length of k that in each consecutive substring of a string with length k, There must be at least one common character. for example if s="abcaca". for k = 1 --> substrings are [a], [b], [c] and etc that we can not find a common char in all. for k = 2 --> [ab], [bc], [ca] ... that again there is no a common ...

  6. 4 days ago · 1. Find the 10th term of the arithmetic progression (AP) where the first term a = 3 and the common difference d = 5. 2. Find the sum of the first 20 terms of the arithmetic progression where the first term a = 2 and the common difference d = 3. 3. Given the arithmetic progression 7, 13, 19,…, find the common difference. 4.

  7. 4 days ago · Abstract. The numbers we study in this paper are of the form B n, p ( k ), which is the number of binary words of length n that contain the word p (as a subsequence, not necessarily consecutive in the word) exactly k times. Our motivation comes from the analogous study of pattern containment in permutations.

  8. 5 days ago · Definition. A constant-recursive sequence is any sequence of integers, rational numbers, algebraic numbers, real numbers, or complex numbers (written as as a shorthand) satisfying a formula of the form.