6 kyu
T.T.T.39: Cut rope
103 of 177myjinxin2015
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.
Python translation: https://www.codewars.com/kumite/640c8df4babb19f7e4d675d7?sel=640c8df4babb19f7e4d675d7
Approved. Thanks O_o
Use
Test.assertDeepEquals()
instead ofTest.assertSimilar()
.Test.assertDeepEquals()
is unaffected by insertion order and has cleaner message.I know that. ;-) But I didn't know
Test.assertDeepEquals()
when I created Kata, so I useTest.assertSimilar()
. It's fixed now ;-) Most of my old Kata use this method(Test.assertSimilar()
). But I am lazy and don't want to go one by one to change my old Kata, because they are too much^_^
Confirmed :)
Also, remove
from the description as it's no longer necessary :)
I made this suggestion because sorting was just a workaround for
Test.assertSimilar
and not really part of the challenge. No need to change every kata that usesTest.assertSimilar
:]Removed ;-)