6 kyu
T.T.T.41: The maximum profit
75 of 93myjinxin2015
Loading description...
Puzzles
Games
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
JS testscases are full of unused material, it needs to be cleaned.
python translation
Hi, I've noticed in the description the series list gets longer and longer.. this can appear annyoing but I may have a solution.. As you know the new collections came in which can group kata series together. I've created a script that will compile a collection and it's data to display a simple neat and tidy drop down list.
An example of this is here If you would like the code for implementing this just let me know, it would improve the description series link spam a lot :)
Thanks for your nice idea!
I click the link, but I can't see the drop down list in that kata. I'm not sure if your code is working, or is my browser not supporting your code? I use the chrome core browser.
I open this link in firefox, in description page, no drop down list found, click
train again
button, I see a blank drop down list. But in chorme browser I can't see it in both two pages.I made one by myself, like this:
Ah,no effect in this place, but it works fine in kata's description...
code:
I can see it, when you click on the page reload it then it should show up, I don't know why it breaks the first time something with how codewars renders the description.
also with my code it populates the dropdowns using the collection so it updates dynamically and can be used for any kata collection.
Can you test if my
drop down list
works? ;-)http://www.codewars.com/kata/they-say-that-only-the-name-is-long-enough-to-attract-attention-they-also-said-that-only-a-simple-kata-will-have-someone-to-solve-it-this-is-a-sadly-story-number-1-are-they-opposite
I used it in this one(#41), can you see it ;-)
it does work, but remember if you want to update the list you have to change it on every single kata in the series, which is why I proposed my solution.
Your examples were very helpful in illustrating exactly how the profit is calculated.
And for once, my code wasn't too terribly long :-)