Professional Documents
Culture Documents
Question 1 (3 Points) : January 22, 2020
Question 1 (3 Points) : January 22, 2020
Question 1 (3 Points) : January 22, 2020
Input Format:The first line consist of two strings in ’lowercase’ only, in a single line.
Input:
geeksforgeeks forgeeksgeeks
allergy allergic
Output:
YES
NO
Input Format: First line of input contains an integer N denoting the size of the matrix. The next line
contains the elements of the matrix in row-wise form..
Input:
4
1 0 2 -1 3 0 0 5 2 1 4 -3 1 0 5 0
Output:
30
Input Format: The first line contains an string ’S’ denoting the set
Input:
abc
1
Output:
””, ”a”, ”b”, ”c”, ”ab”, ”ac”, ”bc”, ”abc”
Input Format: The first line contains the integers N, M denoting the size of matrix followed by the
N lines which contains the element of the matrix and the last line contains the element to be searched.
Input:
34
1357
10 11 16 20
23 30 34 50
3
Output:
Found