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.
Awesome! I was one step away from your cleaner code!
Nice one!
hey guys check my answer i compared speed there repeatedly testing
This comment is hidden because it contains spoiler information about the solution
thats mine but without the docstring ðŸ˜ðŸ˜ðŸ˜
@Gracjandogg You would want measurements taken from production app, leverage monitoring to spot major bottlenecks, and make room for adjustments if the product owner says so, or the performance impact is so much your app is bleeding money.
That's the difference between a senior and a junior. Everything is a tradeoff, and you're better off investing the next hour building stuff that give you ROI, and not just anything you can detect that can be done better.
If you're talking about hot paths? Yes, BUT you will also have to inline any loops, and other things that simply shouldn't exist in non-hotpath code. In sort: You're not wrong, you're just taking things to the absolute extremes by choosing to not use stuff the standard library provides because "slow".
You can search for 'Inline IF statement' or list comprehension. Basically when creating a variable you can put in that same line an IF logic to see what you will assign. For example "Size = 'small' if x < 10 else 'large'" Here depending on x the variable will be 'small' or 'large' in one line instead of having 4 lines.
This comment is hidden because it contains spoiler information about the solution
My brain isn't working... what even?
Python is love
Oh, sorry. I'm kinda new to code wars. I'll be sure to do that next time. Thanks!!
Please mark your post as having spoiler content next time, your post was visible in the homepage.
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 got stuck cuz it kept on saying there was a problem with "filter_string" when the actual name was "filter_list"
Loading more items...