Challenge Active
The Weekly Challenge
You don't have to be an expert
Task #1
Count Prefixes
You are given an array of words and a string (contains only lowercase English letters). Write a script to return the number of words in the given array that are a prefix of the given string.
Task #2
Valid Times
You are given a time in the form ‘HH:MM’. The earliest possible time is ‘00:00’ and the latest possible time is ‘23:59’. In the string time, the digits represented by the ‘?’ symbol are unknown, and must be replaced with a digit from 0 to 9. Write a script to return the count different ways we can make it a valid time.
SO WHAT DO YOU THINK ?
If you have any suggestions or ideas then please do share with us.
Contact with me