Problem 54560. String Logic 11
Examples:
'SUNDAY' --> 6
'MONDAY' --> 6
'TUESDAY' --> 7
'WEDNESDAY' --> 9
'THURSDAY' --> 8
'FRIDAY' --> 5
'SATURDAY' --> 8
Solution Stats
Problem Comments
-
2 Comments
CXD
on 12 Oct 2022
since friday maps to 5, the answer should be:
floor((sum(lower(x))-40)/100)
Johanna
on 8 Aug 2024
According to the description 'FRIDAY' should return the value '5' but it's actually '6'. Please correct the description, my brain almost broke trying to figure out why it's supposed to be '5' :)
Solution Comments
Show commentsProblem Recent Solvers245
Suggested Problems
-
Split a string into chunks of specified length
2012 Solvers
-
Magic is simple (for beginners)
10869 Solvers
-
Fix the last element of a cell array
1700 Solvers
-
Flip the vector from right to left
10479 Solvers
-
982 Solvers
More from this Author27
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!