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.
You're not smart
@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?
Nice one indeed, i actualy did the smae as you.
This comment is hidden because it contains spoiler information about the solution
Python is love
wow
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"
This comment is hidden because it contains spoiler information about the solution
Can you explain what "array size extension" is exactly? I'm looking at your answer and see "fill" and "concat". Would these not be considered array size extensions also? Is your answer the best answer? If so, is filling a new array and concat better than push and spreading? How come?
yes that solution is not be best because of unnecesary loops.
but yours has unnecessary array size extension (pushs) too. same with array destructuring
Loading more items...