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.
hey, I'm getting this error (first letter of sime tests being left out)
'yphen-site' should equal 'hyphen-site'
does anyone have any suggestions as to why this might be in my code?
how does this work ?
can somebody explain why didnt they use a * sign? is that what happens when you use character sets?
anyone got any idea how they would use itertools to solve this? btw for python 3.10 pls
This comment is hidden because it contains spoiler information about the solution
does anyone have any tips on how to optimise code? i keep hearing about making codes more efficient - for exaple avoiding looping through entire lists if you can . would this always require an entirely different problem solving approach or are there any other tips?
also regarding my use of permutations - does anyone know why n=100 is somehow returning 10 even though the length of wanted permutations was supposed to be the length of the original number?
hey guys , i'm having an issue with my code - theres a particular test case which I keep getting errors on . in the end I had to add an 'elif canbuy == 1 :' because 'none' was being returned instead of 1 . Any thoughts?
This comment is hidden because it contains spoiler information about the solution
There is more than one thing wrong with your code. Most of them should be pretty clear when going through the code in a debugger, step by step. Did you try to inspect your code in your local IDE?
hey , trying out my code and get a type error for my 'numbers' list. It doesnt let me calculate a sum , any explanations why ?
You need a better algorithm than what you have now. Counting all factors is a very bad approach, and, on top of that, your implementation of counting all factors is very, very slow.Switching between loops and lists and comprehensions and generators is not going to help if you stick to your current algorithm.
Generally speaking, this is about code efficiency. There may remain something about how you optomize that has not yet occurred to you.
Hey , having issues with increasing efficiency to avoid a timeout error . Could I do so while still using list comprehension ? I tried converting to a generator but it doesnt seem to fix the issue . Any tips? this happens with a few of my programs