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 need to
return
the result, notprint
it.see: https://en.wikipedia.org/wiki/Scientific_notation#E_notation
for example:
1e5
means:$1*10^{5}$
2e-3
means:$2*10^{-3}$
what does the letter 'e' mean in the tests?? for example this one: '2e-3A 1e3R'.
I would apprecciate if somebody helps me out.
"work properly" and "not working" are pretty vague, read this: https://docs.codewars.com/training/troubleshooting/
my code work properly in my my local device but its not working in kata what should i do now??
Approved.
Yes, it's O(n^2): you're using a single loop over O(n^2) instead of two nested loops over O(n) both with common complexity of O(n^2). Also, probably it's not so effective because it's using additional checks instead of just using built-in loops (but this should be benchmarked, not speculated), and it's much less readable; but it has the same time complexity.
a*(a+1) = n*n
Ok, if you say so, what is the time complexity of my own code since maybe i don't really know about time complexity
The task is to generate O(n^2) elements. You can't do O(n^2) work in less then O(n^2) steps.
Bad practice O(n^2)
Nice kata
Because a resistor of lower value of a mili-ohm has no sense in this context.
Loading more items...