PROBLEM LINK:
DIFFICULTY:
CAKEWALK
PROBLEM:
Given 3 digits A,B and C of a three digit number, determine if at least one digit equals 7.
EXPLANATION:
Do as the problem states. If
-
A=7 or B=7 or C=7 - output
YES
, - else output
NO
.
TIME COMPLEXITY:
O(1)
per test case.
SOLUTIONS:
Editorialist’s solution can be found here
Experimental: For evaluation purposes, please rate the editorial (1 being poor and 5 excellent)
- 1
- 2
- 3
- 4
- 5
0 voters