Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Okay, I fixed the problem in the description, but it shouldn't change your solution
I have now specified that the ID's have only the digits 0-9
A URL is valid if all of the following are true
1.The scheme (every charecter before the first
"/"
) has to equal"https:"
2.The Id (every charecter after the last
"/"
) has to have a length of five or fourIf the Id is four charecters long at this point you would add a
"0"
to the begining3.The modified Id does not start with "00"
The scheme is invalid if statement 1. is not true. The ID is invalid if either statement 2. or 3. are false.
Okay I have changed the
hs/UL.com/4
examples tohs:/UL.com/4
. And changed the use of protocol to schemeFor this kata
12%32
has five, but all the IDs should only have the numerical digits 0-9 in themI am sorry for any confusion I have caused. If you are talking about outputs when either the ID or protocol is invalid
protocol_string = "{whatever the protocol is} is an invalid protocol."
Id_string = "{Id} is an invalid store ID."
.The returned string should have theprotocol_string
if the protocol is invalid and the Id isn't. If the ID is invalid but the protocol isn't you should returnId_string
. When both are invalid returnprotocol_string+Id_string
. If this is not what you're talking about, I do not quite understand what you are saying.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I fixed the first two, but do not understand the third, Sorry.
How do you know if an Ace is 1 or 11. You didn't tell us which situation causes 1 and which situation causes 11.
This is 0.4ms shorter on average.
The test cases have an "NameError: name 'Test' is not defined" just turn the
Test
totest
This comment is hidden because it contains spoiler information about the solution
Totally correct.
Sorry, fixed it.
Loading more items...