PROBLEM LINK: CDVB2022/SPECS
Author: aaryan_musk
DIFFICULTY
Cakewalk
PREREQUISITES
Basic Mathematics, Basic Programming, Arrays.
EXPLANATION
- Chef can only buy the specs which are under his budget.
- So we just need to traverse the array and count the numbers less than or equal to the budget.
- Hence we find the count.
SOLUTIONS
C++ Solution: SPECS C++ Solution
Python Solution: SPECS Python Solution