Problem 44949. Find the Best Hotels
Given three input variables:
- hotels - a list of hotel names
- ratings - their ratings in a city
- cutoff - the rating at which you would like to cut off
return only the names of those hotels with a rating of cutoff value or above as a column vector of strings good.
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
Isabella Stellitano
on 14 Nov 2021
Good problem
Sarah
on 1 Dec 2022
very good and challenging problem
TEJAS CHORGE
on 5 Mar 2024
challenging
Solution Comments
Show commentsGroup

MATLAB Onramp Practice
- 15 Problems
- 4527 Finishers
- Times 2 - START HERE
- Calculate Amount of Cake Frosting
- Convert from Fahrenheit to Celsius
- Find the Oldest Person in a Room
- Verify Law of Large Numbers
- Solve a System of Linear Equations
- Calculate a Damped Sinusoid
- Plot Damped Sinusoid
- Calculate BMI
- Crop an Image
- Find the Best Hotels
- Find MPG of Lightest Cars
- Calculate Inner Product
- Rescale Scores
- Longest run of consecutive numbers
Problem Recent Solvers8366
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!