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.
this solutions returns True if the input is ''
I tried the same code and it failed.
looks like you've solved it ~~
This comment is hidden because it contains spoiler information about the solution
You can do whatever you want as long as it's valid code. Whether such approach is viable you can find out yourself.
my code can calculate the number of asterisk (increment by 2odd number per level, see below result) but it still throwing an error because of the wrong spacing. Any tips?
['', '', '*', '', '']
Because those were the test cases, it isn't a functional solution as it only works for the tests that were developed for this kata and nothing else.
Print the input inside function.
this got accepted? why? how?I tried on my jupyter notebeek the link below and the return value shown was youtube
domain_name('http://yahoo-test.com/asdfa/asdf/asdf/asdf/index.html')
on the 3 conditions given in the script what condition satisfied the url below that it still displayed just the domain name
domain_name('http://yahoo-test.com/asdfa/asdf/asdf/asdf/index.html')
You've already answered your question. There's a trivial mathematical trick which you can (should) use to calculate the number of zeroes. If your code is
O(n)
, it is already fundamentally wrong, and you should search for another solution.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
ahhmm..sorry your answer is vague to me.. can you give more details to it? Im still on a learning stage hope you understand. WHy is is also that my question got hidden. Its an error message and not my python code?
You're not handling the case when only the first argument is given.
This comment is hidden because it contains spoiler information about the solution
Loading more items...