My issue
You are given an array
A
A of size
N and an element
X
X. Your task is to find whether the array
A
A contains the element
X
X or not.
Input Format
The first line contains two space-separated integers
N
N and
X
X — the size of array and the element to be searched.
The second line contains all the elements of array AA
A
A
My code
#include <stdio.h>
int main(void) {
// your code goes here
}
Learning course: Data structures & Algorithms lab
Problem Link: https://www.codechef.com/learn/course/muj-dsa-c/MUJDSAC06/problems/SEARCHINARR