Skip to content

Questions Set - 1 #16

Description

@champaksworldcreate
  1. Find longest increasing continuous subarray.
    ex a=[4,6,2,1,4,5,6,7,-1]
    [1,4,5,6,7]

  2. Find longest word in a sentence.
    ex. A train from Chiraigaon to London
    Chiraigaon

  3. Add all single numbers in between string .
    ex : "a1b2c5d8"
    16

  4. Print all prime number between 2 and 500.

  5. Count pairs whose sum is equal to X in given array.
    x=6
    a=[1,2,9,-3,4,5]
    output: 3

  6. Print all distinct number in sorted array .
    Ex a=[1,1,2,3,4,5,5,6,7,8,9,9,9,9]
    Output: 1,2,3,4,5,7,8,9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions