PROBLEM LINK:
Author:
Tester:
Editorialist: Jingbo Shang, Anudeep
DIFFICULTY:
Cakewalk
PREREQUISITES:
For-loop
PROBLEM:
Given an array of integers and a number X. You need to tell how many of those integers are greater than or equal to X.
EXPLANATION:
You may follow the following steps:
- Load the integers and store them in an array
- Load the number X
- Loop over the array, compare each element with X.
- Maintain a counter to record the total number.
AUTHOR’S AND TESTER’S SOLUTIONS:
The links will be fixed soon.
Author’s solution can be found here.
Tester’s solution can be found here.