Check Element Exists Problem
Check Element Exists Problem — ExecCode School DSA Practice
Solve the Check Element Exists problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a list of whole numbers, and then one more special number. Your task is to look through the list and see if the special number is anywhere in it. If you find the special number, print "Yes". If you don't find it, print "No".
Examples
Input 5 1 2 3 4 5 3; Output Yes. Input 4 10 20 30 40 50; Output No
Constraints
1 <= N <= 1000
Practice Check Element Exists free on ExecCode. Browse DSA problems, topic map, and placement guides.