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.
Now it passed 2 months since I solved this kata. I find quite good book "Beyond the Basic Stuff with Python - Al Sweigart" and I learned about "Big O" analysis and now I know cProfile.run() function also. Anyway great thanks once again.
Crazy kata indeed π΅ I also tried and failed - so far.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Love this kata pure work to do, many things to learn and no so crazy puzzle like in many other katas π πππ (Python)
Hellow everyone,
(Python) one fast question "op" argument from def compute_ranges(arr, op, rs): takes only two arguments as op(a, b). Question: how to forse this "op" to swollow list with more than two arguments??? π€¨
Great thanks for answer so I will have to switch from iterto... to something else. New things to learn π
Hello everyone,
could some one be so kind and tell me how fast the solution should be to solve it in the test? My code go through 2522ms in the test with all tests passed and unfortunatelly is to slow to solve "attempt" section. I wonder how many times I should improve code effectivenss?
My oversight. Thanks
I see one sirious problem here (in Python) - the lists in the tests should be sorted!!!! I get the result - whish corresond to the songs list but it is wrongly sorted in comparison to the tests. No sorting helps here or I do not know the proper songs sorting method.
π€π€ (My resolt you can see below and below below you can see the exmple answer from tests)
+--------------------------------+------+--------------+
| Name | Time | Artist |
+--------------------------------+------+--------------+
| Stoned Again | 3:25 | King Krule |
| Serenade | 3:00 | Travis Scott |
| I Always Wanna Die (Sometimes) | 5:15 | The 1975 |
| Stick Talk | 2:54 | Future |
| Nightcrawler | 5:22 | Travis Scott |
+--------------------------------+------+--------------+
[('Stoned Again', '3:25', 'King Krule'), ('Serenade', '3:00', 'Travis Scott'), ('I Always Wanna Die (Sometimes)', '5:15', 'The 1975'), ('Stick Talk', '2:54', 'Future'), ('Nightcrawler', '5:22', 'Travis Scott')]
Answer from the test below:
+--------------------------------+------+--------------+
| Name | Time | Artist |
+--------------------------------+------+--------------+
| Stick Talk | 2:54 | Future |
| Stoned Again | 3:25 | King Krule |
| I Always Wanna Die (Sometimes) | 5:15 | The 1975 |
| Nightcrawler | 5:22 | Travis Scott |
| Serenade | 3:00 | Travis Scott |
+--------------------------------+------+--------------+
Like for me great Kata but please add in test some sorted lists.
π¦§πΎπΎπΎ