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.
It's bad solution to calculate sum(...) in each "for" loop
Hello!
First of all, thank you for the great kata)
I am trying to pass C++ full test suite, but I keep gettting timeout error despite all my attempts on optimization.
However, "HEY JUDE" test takes 6-9 ms to complete. Is there an issue with my code and I need to continue optimization or something wrong with the tests?
UPD: Oh, my fault: there's been a mistake!)
Can someone please point out to me, why I can't pass this test:
Testing if the words, spaces and punctuation order has been respected for... and my jumbled text is:
Aodnirccg to a reerachesr at Cigbdarme Uitrvsneiy, it dnoes't mteatr in what oerdr the leertts in a word are, the only ioaptmnrt thnig is taht the fsirt and lsat letetr be at the rihgt palce. The rset can be a tatol mess and you can sitll read it wiothut pobelrm. Tihs is bcsuaee the hamun mind does not raed ervey lteter by ietlsf but the word as a wlohe.
Sometimes the constant factor is important when it's really performance-critical.
For example, heap sort and merge sort typically has a much bigger constant runtime factor than quick sort.
the simplification is valable/usefull for comparisons only if you compare different "degrees of complexity"
O(2n) == O(n)
O(2N) while it's easy to do it in O(N)...
thanks a lot!
@alexandrpi
,is
tests for identity, not equality.http://prntscr.com/dxuk0r
Can anyone explain please what's wrong here? It is python 2.7.somewhat
Can you explain please what this decorator do?
Thanks for letting me know.. I have not looked at the PEP8 documentation.
Nevertheless, PEP8 does not recommend to assign lambda expressions to variables.